OSDN Git Service

[X86] Add X86ISD::VTRUNC to computeKnownBitsForTargetNode.
authorCraig Topper <craig.topper@intel.com>
Sun, 14 Jan 2018 08:11:33 +0000 (08:11 +0000)
committerCraig Topper <craig.topper@intel.com>
Sun, 14 Jan 2018 08:11:33 +0000 (08:11 +0000)
commit30e8c8a377a3f659008a5a5aee6020db936bb6a1
tree6a6ed68eda8dceeb1d08912ceb8eeb7fda635658
parentcf6e4313b83a18566739362f0880b8e132cb2fde
[X86] Add X86ISD::VTRUNC to computeKnownBitsForTargetNode.

We have to take special care to avoid the cases where the result of the truncate would be padded with zero elements.

Ideally we'd just use ISD::TRUNCATE for these cases instead.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@322454 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelLowering.cpp
test/CodeGen/X86/avx512-trunc.ll