Skip to content

Commit

Permalink
Bisect
Browse files Browse the repository at this point in the history
  • Loading branch information
lialan committed Feb 5, 2025
1 parent 5368df4 commit b6a41ab
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions compiler/src/iree/compiler/Codegen/LLVMGPU/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ iree_cc_library(
MLIRLinalgTransforms
MLIRMathDialect
MLIRMathToLLVM
MLIRMathTransforms
MLIRMemRefDialect
MLIRMemRefToLLVM
MLIRMemRefTransforms
Expand Down
3 changes: 2 additions & 1 deletion compiler/src/iree/compiler/Codegen/LLVMGPU/ConvertToLLVM.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,8 @@ void populateScalarizeMathOps(RewritePatternSet &patterns) {
ScalarizeMathOp<math::Log10Op>, ScalarizeMathOp<math::Log2Op>,
ScalarizeMathOp<math::PowFOp>, ScalarizeMathOp<math::RsqrtOp>,
ScalarizeMathOp<math::SinOp>, ScalarizeMathOp<math::SqrtOp>,
ScalarizeMathOp<math::TanhOp>>(patterns.getContext());
ScalarizeMathOp<math::TanhOp>, ScalarizeMathOp<math::ErfOp>>(
patterns.getContext());
}

void populateConvertSharedMemoryAllocOps(RewritePatternSet &patterns) {
Expand Down
5 changes: 2 additions & 3 deletions compiler/src/iree/compiler/Codegen/LLVMGPU/Passes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1110,10 +1110,9 @@ static void addLowerToLLVMGPUPasses(OpPassManager &modulePassManager,
.addPass(createConvertBf16ArithToF32Pass)
.addPass(createConvertBf16ToUInt16BuffersPass)
// Convert math dialect elementry functions to polynomial form.
.addPass([&]() {
.addPass([]() {
return createPolynomialApproximationPass(
{/*noApproxOps =*/{"tan", "sinh", "cosh", "asinh", "acosh", "atanh",
"powf", "fpowi"}});
PolynomialApproximationPassOptions{/*noApproxOps =*/{"tan"}});
})
.addPass(memref::createExpandOpsPass)
.addPass(memref::createFoldMemRefAliasOpsPass)
Expand Down

0 comments on commit b6a41ab

Please sign in to comment.