[flang-commits] [flang] [flang][TBAA] refine TARGET/POINTER encoding (PR #169544)
via flang-commits
flang-commits at lists.llvm.org
Thu Nov 27 01:58:58 PST 2025
jeanPerier wrote:
> You may be right, Eugene! It looks like exception `(b)` does not apply here.
Agree with Eugene and I tested similar case with and array assignment that shows gfortran optimize this case:
```
module m
! If TARGET is added here, the assignment in test should not be optimized.
integer :: x(10) = [(i, i=1,10)]
contains
subroutine test(y)
integer, target :: y(:)
x = y
end subroutine
end module
use m
call test(x(10:1:-1))
print *, x
end
```
https://github.com/llvm/llvm-project/pull/169544
More information about the flang-commits
mailing list