[mlir][tensor][NFC] Fix a typo in pack simplification pattern. (#76109)

This commit is contained in:
Han-Chung Wang 2023-12-20 17:03:55 -08:00 committed by GitHub
parent ba192debb4
commit bffdde8b8e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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>