[Mlir-commits] [mlir] bffdde8 - [mlir][tensor][NFC] Fix a typo in pack simplification pattern. (#76109)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Wed Dec 20 17:03:59 PST 2023
Author: Han-Chung Wang
Date: 2023-12-20T17:03:55-08:00
New Revision: bffdde8b8e5d9a76a47949cd0f574f3ce656e181
URL: https://github.com/llvm/llvm-project/commit/bffdde8b8e5d9a76a47949cd0f574f3ce656e181
DIFF: https://github.com/llvm/llvm-project/commit/bffdde8b8e5d9a76a47949cd0f574f3ce656e181.diff
LOG: [mlir][tensor][NFC] Fix a typo in pack simplification pattern. (#76109)
Added:
Modified:
mlir/lib/Dialect/Tensor/IR/TensorOps.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Dialect/Tensor/IR/TensorOps.cpp b/mlir/lib/Dialect/Tensor/IR/TensorOps.cpp
index 1b0cdbd0f4f739..7c35dd4d953619 100644
--- a/mlir/lib/Dialect/Tensor/IR/TensorOps.cpp
+++ b/mlir/lib/Dialect/Tensor/IR/TensorOps.cpp
@@ -3469,7 +3469,7 @@ OpFoldResult SplatOp::fold(FoldAdaptor adaptor) {
namespace {
/// Packing one-dimensional tensor can be expressed as an expand shape op.
-struct SimplifyPackToExandShape : public OpRewritePattern<PackOp> {
+struct SimplifyPackToExpandShape : public OpRewritePattern<PackOp> {
using OpRewritePattern<PackOp>::OpRewritePattern;
Value insertExpand(RewriterBase &rewriter, Location loc, Value operand,
@@ -3501,7 +3501,7 @@ struct SimplifyPackToExandShape : public OpRewritePattern<PackOp> {
} // namespace
void mlir::tensor::populateSimplifyTensorPack(RewritePatternSet &patterns) {
- patterns.add<SimplifyPackToExandShape>(patterns.getContext());
+ patterns.add<SimplifyPackToExpandShape>(patterns.getContext());
}
template <typename OpTy>
More information about the Mlir-commits
mailing list