[flang-commits] [flang] [flang] Erase `fir.local` ops before lowering `fir` to `llvm` (PR #143687)

Kareem Ergawy via flang-commits flang-commits at lists.llvm.org
Wed Jun 11 06:18:47 PDT 2025


ergawy wrote:

> Why aren't the fir.local ops removed when the privatization is lowered to either openmp or sequential code?

This is a unified location where we can take car of this. Also, since the same `fir.local` op can be potentially used by multiple `do_concurrent` ops, we don't have to check if the uses are empty after converting a `do_concurrent` op, here we can do that uncondtionally. 

https://github.com/llvm/llvm-project/pull/143687


More information about the flang-commits mailing list