[llvm-branch-commits] [flang] [flang][OpenACC] remap component references in structured constructs (PR #171501)
via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Tue Dec 9 12:59:58 PST 2025
================
@@ -18,9 +18,10 @@ subroutine test()
call vadd(b)
!$acc end host_data
! CHECK: %[[C:.*]] = acc.use_device var(%[[A]]#0 : !fir.box<!fir.array<?xf64>>) -> !fir.box<!fir.array<?xf64>> {name = "b"}
-! CHECK: %[[D:.*]] = acc.use_device varPtr(%[[A]]#1 : !fir.ref<!fir.array<?xf64>>) -> !fir.ref<!fir.array<?xf64>> {name = "b"}
----------------
jeanPerier wrote:
generating `acc.use_device` for both hlfir.declare results is not needed anymore now that the hlfir.declare is recreated from the acc.use_device inside the region and that everything goes through it.
https://github.com/llvm/llvm-project/pull/171501
More information about the llvm-branch-commits
mailing list