This is an archive of the discontinued LLVM Phabricator instance.

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

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

Details

Summary

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

Repository
rL LLVM

Event Timeline

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

LGTM

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.