[flang] [llvm] [mlir] [flang][OpenMP] Enable tiling (PR #143715)

Sergio Afonso via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 28 07:14:17 PDT 2025


================
@@ -2036,9 +2077,9 @@ static mlir::omp::LoopNestOp genLoopNestOp(
     return llvm::SmallVector<const semantics::Symbol *>(iv);
   };
 
-  auto *nestedEval =
-      getCollapsedLoopEval(eval, getCollapseValue(item->clauses));
-
+  uint64_t nestValue = getCollapseValue(item->clauses);
+  nestValue = nestValue < iv.size() ? iv.size() : nestValue;
----------------
skatrak wrote:

I just realized that I missed some additions to `collectLoopRelatedInfo` that already make sure that the number of IVs will be the maximum between the collapse value and the number of tile sizes. Looks good.

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


More information about the llvm-commits mailing list