This revision add constant folder for abs, copysign, ctlz, cttz and
ctpop.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Paths
| Differential D122115
[mlir][Math] Add more constant folder for Math ops. ClosedPublic Authored by jacquesguan on Mar 21 2022, 1:11 AM.
Details Summary This revision add constant folder for abs, copysign, ctlz, cttz and
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Mar 21 2022, 2:20 AM
Closed by commit rGe609417cdc93: [mlir][Math] Add more constant folder for Math ops. (authored by jacquesguan). · Explain WhyMar 21 2022, 7:23 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 417166 mlir/include/mlir/Dialect/Math/IR/MathOps.td
mlir/lib/Dialect/Math/IR/MathOps.cpp
mlir/test/Dialect/Math/canonicalize.mlir
|
Nit: a hex literal would be better here to check the correctness of the test.