[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 10:40:27 PDT 2025


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

https://github.com/llvm/llvm-project/blob/e63f0f50fae479b4eaec98ac97de0745735a90b7/llvm/include/llvm/ADT/SmallVector.h#L1318-L1319

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


More information about the Mlir-commits mailing list