https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64700
--- Comment #10 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Created attachment 59036 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=59036&action=edit Patch which extends to support commutative operations This extends the first patch to support (all) commutative operations. Including ones where the commutative operands are not 0/1. When I submit this, it will be merged in with the other patch but I wanted to attach this as extension on top of the other one.