This is an archive of the discontinued LLVM Phabricator instance.

[DAGCombiner][X86] Improve narrowExtractedVectorLoad to handle cases where the element size isn't byte sized by the subvector is.
ClosedPublic

Authored by craig.topper on Mar 1 2020, 9:22 PM.

Details

Summary

Follow up from D75377. If the subvector is byte sized and the
index is aligned to the subvector size, we can shrink the load.

Diff Detail

Event Timeline

craig.topper created this revision.Mar 1 2020, 9:22 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 1 2020, 9:22 PM
Herald added a subscriber: hiraditya. · View Herald Transcript
RKSimon accepted this revision.Mar 3 2020, 2:26 AM

LGTM - thanks Craig

This revision is now accepted and ready to land.Mar 3 2020, 2:26 AM
This revision was automatically updated to reflect the committed changes.