[NFC] Fix pattern name.

It still had the old name from before ElementwiseMappable was added.
This commit is contained in:
Sean Silva 2020-11-25 16:10:34 -08:00
parent ed95cafbc5
commit 5488a6b0ff
1 changed files with 3 additions and 3 deletions

View File

@ -26,8 +26,8 @@ static bool isElementwiseMappableOpOnRankedTensors(Operation *op) {
}
namespace {
struct ConvertStdElementwiseOpOnRankedTensors : public RewritePattern {
ConvertStdElementwiseOpOnRankedTensors()
struct ConvertAnyElementwiseMappableOpOnRankedTensors : public RewritePattern {
ConvertAnyElementwiseMappableOpOnRankedTensors()
: RewritePattern(/*benefit=*/1, MatchAnyOpTypeTag()) {}
LogicalResult matchAndRewrite(Operation *op,
PatternRewriter &rewriter) const final {
@ -68,7 +68,7 @@ struct ConvertStdElementwiseOpOnRankedTensors : public RewritePattern {
void mlir::populateElementwiseToLinalgConversionPatterns(
OwningRewritePatternList &patterns, MLIRContext *) {
patterns.insert<ConvertStdElementwiseOpOnRankedTensors>();
patterns.insert<ConvertAnyElementwiseMappableOpOnRankedTensors>();
}
namespace {