Page MenuHomePhabricator

[X86] Add post-isel peephole to fold KAND+KORTEST into KTEST if only the zero flag is used.

Authored by craig.topper on Jan 2 2019, 11:23 PM.



Doing this late so we will prefer to fold the AND into a masked comparison first. That can be better for the live range of the mask register.

Diff Detail

Event Timeline

craig.topper created this revision.Jan 2 2019, 11:23 PM
RKSimon accepted this revision.Jan 3 2019, 7:31 AM


This revision is now accepted and ready to land.Jan 3 2019, 7:31 AM
This revision was automatically updated to reflect the committed changes.