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

lonely eagle llvmlistbot at llvm.org
Thu Oct 30 12:07:01 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);
----------------
linuxlonelyeagle wrote:

My apologies, I misunderstood your earlier point. I thought you wanted me to use `to_vector_of<T>`.

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


More information about the Mlir-commits mailing list