[Mlir-commits] [flang] [mlir] [flang][OpenACC] Fix implicit data mapping for deviceptr inside host_data (PR #192710)
Razvan Lupusoru
llvmlistbot at llvm.org
Tue Apr 21 16:48:36 PDT 2026
razvanlupusoru wrote:
> > When subroutine f is inlined
>
> You need to add `-Ofast` to your compilation line to enable inlining.
Thanks! I was able to reproduce the problem and to me it looks like the algorithm is able to find the `deviceptr` clause on the `embox` but then the call to alias returns MayAlias (here is my debug output `alias(%47 = fir.embox %46(%45) : (!fir.ref<!fir.array<?xf32>>, !fir.shape<1>) -> !fir.box<!fir.array<?xf32>>, %46 = fir.declare %40(%45) dummy_scope %41 arg 1 {uniq_name = "_QMtest_modFfEb"} : (!fir.ref<!fir.array<?xf32>>, !fir.shape<1>, !fir.dscope) -> !fir.ref<!fir.array<?xf32>>) = MayAlias`). If this returned MustAlias then we would correctly generate deviceptr clause. Thus it seems that investigating why AA returns MayAlias would likely be the appropriate next step.
https://github.com/llvm/llvm-project/pull/192710
More information about the Mlir-commits
mailing list