Kareem Ergawy 282e471018
[flang] Erase fir.local ops before lowering fir to llvm (#143687)
`fir.local` ops are not supposed to have any uses at this point (i.e.
during lowering to LLVM). In case of serialization, the
`fir.do_concurrent` users are expected to have been lowered to
`fir.do_loop` nests. In case of parallelization, the `fir.do_concurrent`
users are expected to have been lowered to the target parallel model
(e.g. OpenMP).

This hopefully resolved a build issue introduced by
https://github.com/llvm/llvm-project/pull/142567 (see for example:
https://lab.llvm.org/buildbot/#/builders/199/builds/4009).
2025-06-12 05:58:55 +02:00

11 lines
237 B
Plaintext

// RUN: fir-opt --fir-to-llvm-ir %s | FileCheck %s
// Tests that `fir.local` ops are dropped from the module before LLVM lowering.
fir.local {type = local} @local_privatizer : i32
func.func @foo() {
return
}
// CHECK-NOT: fir.local