[flang-commits] [PATCH] D149878: [flang][hlfir] Lower forall to HLFIR
Tom Eccles via Phabricator via flang-commits
flang-commits at lists.llvm.org
Fri May 5 03:23:41 PDT 2023
tblah added inline comments.
================
Comment at: flang/test/Lower/HLFIR/forall.f90:114-115
+! CHECK: %[[VAL_8:.*]] = fir.call @_QPifoo() fastmath<contract> : () -> i32
+! CHECK: %[[VAL_9:.*]] = fir.call @_QPjfoo() fastmath<contract> : () -> i64
+! CHECK: %[[VAL_10:.*]] = fir.call @_QPjbar() fastmath<contract> : () -> i64
+! CHECK: hlfir.forall lb {
----------------
As I understand it, the limits to these iterations can be any integer expression (R1127). So jfoo() and jbar() might have side effects and so can't be hoisted outside of the outer forall.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D149878/new/
https://reviews.llvm.org/D149878
More information about the flang-commits
mailing list