[Mlir-commits] [mlir] [mlir][affine] Add fold logic when the affine.yield has IV as operand in the AffineForEmptyLoopFolder (PR #165639)

Jakub Kuderski llvmlistbot at llvm.org
Thu Oct 30 11:13:41 PDT 2025


================
@@ -2675,7 +2675,7 @@ static SmallVector<OpFoldResult> AffineForEmptyLoopFolder(AffineForOp forOp) {
   // out of order.
   if (tripCount.has_value() && tripCount.value() >= 2 && iterArgsNotInOrder)
     return {};
-  return replacements;
+  return llvm::to_vector(replacements);
----------------
kuhar wrote:

What was the previous error? Can you share the link to the buildbot that complained? I don't understand why this would fix anything.

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


More information about the Mlir-commits mailing list