[Mlir-commits] [mlir] f795b20 - [mlir][vector] Update fold pattern name. NFC.
Jakub Kuderski
llvmlistbot at llvm.org
Fri Nov 25 11:45:44 PST 2022
Author: Jakub Kuderski
Date: 2022-11-25T14:44:37-05:00
New Revision: f795b20736e93ef435a0b929d7100f5da0321b18
URL: https://github.com/llvm/llvm-project/commit/f795b20736e93ef435a0b929d7100f5da0321b18
DIFF: https://github.com/llvm/llvm-project/commit/f795b20736e93ef435a0b929d7100f5da0321b18.diff
LOG: [mlir][vector] Update fold pattern name. NFC.
Added:
Modified:
mlir/lib/Dialect/Vector/IR/VectorOps.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Dialect/Vector/IR/VectorOps.cpp b/mlir/lib/Dialect/Vector/IR/VectorOps.cpp
index af81c156e2d7..3027b466fc90 100644
--- a/mlir/lib/Dialect/Vector/IR/VectorOps.cpp
+++ b/mlir/lib/Dialect/Vector/IR/VectorOps.cpp
@@ -1613,7 +1613,7 @@ class ExtractOpSplatConstantFolder final : public OpRewritePattern<ExtractOp> {
// Pattern to rewrite a ExtractOp(vector<...xT> ConstantOp)[...] -> ConstantOp,
// where the position array specifies a scalar element.
-class ExtractOpScalarVectorConstantFolder final
+class ExtractOpNonSplatConstantFolder final
: public OpRewritePattern<ExtractOp> {
public:
using OpRewritePattern::OpRewritePattern;
@@ -1663,7 +1663,7 @@ class ExtractOpScalarVectorConstantFolder final
void ExtractOp::getCanonicalizationPatterns(RewritePatternSet &results,
MLIRContext *context) {
- results.add<ExtractOpSplatConstantFolder, ExtractOpScalarVectorConstantFolder,
+ results.add<ExtractOpSplatConstantFolder, ExtractOpNonSplatConstantFolder,
ExtractOpFromBroadcast>(context);
}
More information about the Mlir-commits
mailing list