This is an archive of the discontinued LLVM Phabricator instance.

[X86] Add combine to shrink 64-bit ands when one input is an any_extend and the other input guarantees upper 32 bits are 0.
ClosedPublic

Authored by craig.topper on Feb 12 2018, 10:00 PM.

Diff Detail

Event Timeline

craig.topper created this revision.Feb 12 2018, 10:00 PM

Remove the check for the any_extend. Just do it anytime the and has a non-constant RHS. Doing this for constant RHS can cause infinite loops.

RKSimon accepted this revision.Feb 13 2018, 3:44 AM

LGTM

This revision is now accepted and ready to land.Feb 13 2018, 3:44 AM
This revision was automatically updated to reflect the committed changes.