[InstCombine] improve efficiency of isFreeToInvert
This is NFC-intended when viewed from outside the pass. I was trying to make sure that we don't infinite loop in subtract combines and noticed that we handle the non-canonical forms of add/sub here, but it should not be necessary. Coding it this way seems slightly clearer than mixing all 4 patterns as before.
Loading
Please register or sign in to comment