Add the following canonicalization
- and(x, 1) -> x
- subi(x, 0) -> x
Differential D81534
[mlir][StandardDialect] Add some folding for operations in standard dialect. mravishankar on Jun 9 2020, 11:55 PM. Authored by
Details Add the following canonicalization
Diff Detail
Event Timeline
Comment Actions Address comments
|
This doesn't make sense to me, did you intend to check for all ones?