These propagate all the way down to SPIR-V and result in some fishy code
with large constants.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Paths
| Differential D145423
[mlir][arith] Canonicalize `addi(x, muli(y, -1))` -> `subi(x, y)` ClosedPublic Authored by kuhar on Mar 6 2023, 2:15 PM.
Details Summary These propagate all the way down to SPIR-V and result in some fishy code
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Mar 6 2023, 2:48 PM This revision was landed with ongoing or failed builds.Mar 6 2023, 4:29 PM Closed by commit rGfbe91fe2cc3b: [mlir][arith] Canonicalize `addi(x, muli(y, -1))` -> `subi(x, y)` (authored by kuhar). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 502798 mlir/lib/Dialect/Arith/IR/ArithCanonicalization.td
mlir/lib/Dialect/Arith/IR/ArithOps.cpp
mlir/test/Dialect/Arith/canonicalize.mlir
|