]> granicus.if.org Git - llvm/commit
[X86] Allow pack instructions to be used for 512->256 truncates when -mprefer-vector...
authorCraig Topper <craig.topper@intel.com>
Wed, 7 Aug 2019 21:16:10 +0000 (21:16 +0000)
committerCraig Topper <craig.topper@intel.com>
Wed, 7 Aug 2019 21:16:10 +0000 (21:16 +0000)
commit970c41dd6cca5bae156d01575c406a581d31d043
tree7fa9ca0539ccdd7434b2b22d0a550b5a9c1fc170
parentf5b21a68e43aa99685d9c34f70b6c5bc041720fa
[X86] Allow pack instructions to be used for 512->256 truncates when -mprefer-vector-width=256 is causing 512-bit vectors to be split

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.

Differential Revision: https://reviews.llvm.org/D65904

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@368210 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelLowering.cpp
test/CodeGen/X86/min-legal-vector-width.ll