[flang-commits] [flang] [OpenMP][Flang] Add "IsolatedFromAbove" trait to omp.target (PR #67164)
Kiran Chandramohan via flang-commits
flang-commits at lists.llvm.org
Mon Oct 2 07:31:53 PDT 2023
kiranchandramohan wrote:
> @kiranchandramohan I'm still struggling with the above issue with HLFIR lowering. Do you have any insight on how to solve this?
@TIFitis From the IR that you pasted, it looks like ` %5 = "fir.shape"(%0) : (index) -> !fir.shape<1>` is dependent on ` %0 = "arith.constant"() <{value = 1024 : index}> : () -> index` that is created outside the region.
I believe the lowering code did not have to deal with `IsolatedFromAbove` regions before, so it might be reusing values. So while you are seeing this in HLFIR code, it is not necessarily an HLFIR issue. We can discuss this in the call today.
https://github.com/llvm/llvm-project/pull/67164
More information about the flang-commits
mailing list