[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:38:30 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:
I don't think this is any different than the previous version -- `to_vector_of<T>` should pick the same small size as `SmallVector<T>`
https://github.com/llvm/llvm-project/pull/165639
More information about the Mlir-commits
mailing list