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

Kajetan Puchalski via flang-commits flang-commits at lists.llvm.org
Thu May 29 13:14:22 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) {
----------------
mrkajetanp wrote:

It's so that genLoopNest can optionally annotate the generated loops as not vectorisable, as discussed in the RFC discussion. Do you mean I should post that on its own as a separate prerequisite PR?

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


More information about the flang-commits mailing list