Add folding rule for std.or op when an operand has all bits set.
or(x, <all bits set>) -> <all bits set>
Differential D111206
[MLIR] Add OrOp folding rule for constant one operand bondhugula on Oct 5 2021, 10:28 PM. Authored by
Details Add folding rule for std.or op when an operand has all bits set. or(x, <all bits set>) -> <all bits set>
Diff Detail
Event Timeline
Comment Actions Fix folder for all ones.
|
OrOp is a bitwise or, this doesn't look correct for non-i1. Is this intended to capture when all bits are set in one of the values?