This is an archive of the discontinued LLVM Phabricator instance.

[X86] Prefer AND over PSHUFB for v64i8 when possible
ClosedPublic

Authored by craig.topper on Jun 29 2020, 11:51 AM.

Details

Summary

If the shuffle is a blend and one input is a 0 vector, we should prefer AND over PSHUFB since its available on more execution ports.

Diff Detail

Event Timeline

craig.topper created this revision.Jun 29 2020, 11:51 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 29 2020, 11:51 AM
Herald added a subscriber: hiraditya. · View Herald Transcript
RKSimon accepted this revision.Jun 29 2020, 2:14 PM

LGTM

This revision is now accepted and ready to land.Jun 29 2020, 2:14 PM
This revision was automatically updated to reflect the committed changes.