Demote arith.addui_extended to arith.addi when the 'overflow'
result has no uses.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Paths
| Differential D139722
[mlir][arith] Add canon pattern: addui_extended -> addi ClosedPublic Authored by kuhar on Dec 9 2022, 9:03 AM.
Details Summary Demote arith.addui_extended to arith.addi when the 'overflow'
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Dec 9 2022, 10:05 AM Closed by commit rG1dc9047bdab7: [mlir][arith] Add canon pattern: addui_extended -> addi (authored by kuhar). · Explain WhyDec 9 2022, 11:41 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 481712 mlir/include/mlir/Dialect/Arith/IR/ArithOps.td
mlir/lib/Dialect/Arith/IR/ArithCanonicalization.td
mlir/lib/Dialect/Arith/IR/ArithOps.cpp
mlir/test/Dialect/Arith/canonicalize.mlir
|