[Mlir-commits] [mlir] [mlir] Return vectorized values instead of replacing (PR #144158)
Han-Chung Wang
llvmlistbot at llvm.org
Thu Jun 19 09:30:36 PDT 2025
================
@@ -2614,12 +2609,7 @@ LogicalResult mlir::linalg::vectorize(RewriterBase &rewriter, Operation *op,
return failure();
}
- if (!results.empty())
- rewriter.replaceOp(op, results);
- else
- rewriter.eraseOp(op);
-
- return success();
+ return VectorizationResult({results});
----------------
hanhanW wrote:
Since you're using braced initialization lists, I think this can be `VectorizationResult{results}` or just `{results}`.
https://github.com/llvm/llvm-project/pull/144158
More information about the Mlir-commits
mailing list