Hi all,
This patch moves the following optimization from visitOr to SimplifyOrInst.
(A & C1)|(B & C2)
If we have: ((V + N) & C1) | (V & C2)
.. and C2 = ~C1 and C2 is 0+1+ and (N & C2) == 0.
This follows the statement that: InstComb optimization which do not create new instructions should
be moved to InstructionSimplify.
Suyog and myself have planned to come up with more such refactoring patches as and when we
encounter possible cases in InstComb which should be moved to InstSimplify.
Any suggestions/help/pointers on the same will be very much appreciated.
Please help review this patch.
Thanks,
Rahul
Please sink this down to where they're first assigned (lines 1634, 1635).