Fold mul(x, 1) and mul(x, 0).
Depends on D153736
Paths
| Differential D153736
[mlir][index] Add `index.mul` identity folders ClosedPublic Authored by Mogball on Jun 25 2023, 6:19 PM.
Details
Diff Detail
Event TimelineMogball edited parent revisions, added: D153732: [mlir][index] Fold `cmp(max/min(x, cstA), cstB)`; removed: D153731: [mlir][index] Mark certain ops as Commutative.Jun 25 2023, 6:25 PM Mogball added a child revision: D153780: [mlir][index] Add identity folders for add and sub.Jun 26 2023, 8:29 AM This revision is now accepted and ready to land.Jun 26 2023, 11:47 AM Closed by commit rG42092c071a84: [mlir][index] Add `index.mul` identity folders (authored by Mogball). · Explain WhyJun 26 2023, 11:49 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 534399 mlir/lib/Dialect/Index/IR/IndexOps.cpp
mlir/test/Dialect/Index/index-canonicalize.mlir
|
I would assume this would just work (given it's just a PointerUnion internally, which defines an operator bool)