Skip to content

Commit 9b579d8

Browse files
committed
fix populateExpansionPatterns
Signed-off-by: Yu-Zhewen <[email protected]>
1 parent 6e57598 commit 9b579d8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/RefBackend/RefBackend.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,8 @@ class ExpandOpsForLLVM : public ExpandOpsForLLVMBase<ExpandOpsForLLVM> {
361361
auto func = getOperation();
362362
auto *context = &getContext();
363363
RewritePatternSet patterns(context);
364-
populateExpandTanhPattern(patterns);
364+
math::populateExpansionPatterns(patterns,
365+
{math::TanhOp::getOperationName()});
365366
patterns.add<math::ErfPolynomialApproximation>(patterns.getContext());
366367
ConversionTarget target(*context);
367368
target.addLegalDialect<func::FuncDialect>();

0 commit comments

Comments
 (0)