This is the ARM equivalent of D141119, where we fold and x, (csel 0, 1, cc) to csel ZR, x, cc if we know that x is 0/1 and for or x, (csel 0, 1, cc) emit csinc x, ZR, cc. The or pattern gets recognized from a cmov under Arm.
Details
Details
Diff Detail
Diff Detail