This is an archive of the discontinued LLVM Phabricator instance.

[X86] Allow pack instructions to be used for 512->256 truncates when -mprefer-vector-width=256 is causing 512-bit vectors to be split
ClosedPublic

Authored by craig.topper on Aug 7 2019, 1:59 PM.

Details

Summary

If we're splitting the 512-bit vector anyway and we have zero/sign bits, then we might as well use pack instructions to concat and truncate at once.

Diff Detail

Repository
rL LLVM

Event Timeline

craig.topper created this revision.Aug 7 2019, 1:59 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 7 2019, 1:59 PM
Herald added a subscriber: hiraditya. · View Herald Transcript
RKSimon accepted this revision.Aug 7 2019, 2:06 PM

LGTM

This revision is now accepted and ready to land.Aug 7 2019, 2:06 PM
This revision was automatically updated to reflect the committed changes.