[flang-commits] [flang] [flang] Inline hlfir.copy_in for trivial types (PR #138718)

Slava Zakharin via flang-commits flang-commits at lists.llvm.org
Thu May 29 13:19:04 PDT 2025


================
@@ -967,6 +969,15 @@ hlfir::LoopNest hlfir::genLoopNest(mlir::Location loc,
       auto ub = builder.createConvert(loc, indexType, extent);
       auto doLoop =
           builder.create<fir::DoLoopOp>(loc, one, ub, one, isUnordered);
+      if (!couldVectorize) {
----------------
vzakhari wrote:

I would prefer it to be separate commit, but then it will be a non-testable change.  Okay, let's keep it, but please make sure your LIT tests check that proper attributes are set in `#loop_annotation`.

https://github.com/llvm/llvm-project/pull/138718


More information about the flang-commits mailing list