[all-commits] [llvm/llvm-project] e7bf54: [flang] AliasAnalysis: Handle fir.load on hlfir.de...

Joel E. Denny via All-commits all-commits at lists.llvm.org
Wed Feb 19 08:38:51 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e7bf54d62771219145171c66584578972edf0e30
      https://github.com/llvm/llvm-project/commit/e7bf54d62771219145171c66584578972edf0e30
  Author: Joel E. Denny <jdenny.ornl at gmail.com>
  Date:   2025-02-19 (Wed, 19 Feb 2025)

  Changed paths:
    M flang/include/flang/Optimizer/Analysis/AliasAnalysis.h
    M flang/lib/Optimizer/Analysis/AliasAnalysis.cpp
    A flang/test/Analysis/AliasAnalysis/load-ptr-designate.fir

  Log Message:
  -----------
  [flang] AliasAnalysis: Handle fir.load on hlfir.designate (#127107)

For example, determine that the address in `obj%p` below cannot alias
the address of `v`:

```
module m
  type :: ty
    real, pointer :: p
  end type ty
end module m
subroutine test()
  use m
  real, target :: t
  real :: v
  type(ty) :: obj
  obj%p => t
  v = obj%p
end subroutine test
```



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list