[all-commits] [llvm/llvm-project] 22426d: [flang][openacc/mp] Do not read bounds on absent b...

Valentin Clement (バレンタイン クレメン) via All-commits all-commits at lists.llvm.org
Fri Dec 15 13:02:53 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 22426d9ecda11b5be428a35e9bcdeec2744ce30d
      https://github.com/llvm/llvm-project/commit/22426d9ecda11b5be428a35e9bcdeec2744ce30d
  Author: Valentin Clement (バレンタイン クレメン) <clementval at gmail.com>
  Date:   2023-12-15 (Fri, 15 Dec 2023)

  Changed paths:
    M flang/lib/Lower/DirectivesCommon.h
    M flang/lib/Lower/OpenACC.cpp
    M flang/lib/Lower/OpenMP.cpp
    M flang/test/Lower/OpenACC/acc-bounds.f90
    M flang/test/Lower/OpenACC/acc-data.f90

  Log Message:
  -----------
  [flang][openacc/mp] Do not read bounds on absent box (#75252)

Make sure we only load box and read its bounds when it is present.
- Add `AddrAndBoundInfo` struct to be able to carry around the `addr`
and `isPresent` values. This is likely to grow so we can make all the
access in a single `fir.if` operation.




More information about the All-commits mailing list