OSDN Git Service

[X86] Simplify the AVX512 code in LowerTruncate a little.
authorCraig Topper <craig.topper@intel.com>
Mon, 19 Mar 2018 21:58:02 +0000 (21:58 +0000)
committerCraig Topper <craig.topper@intel.com>
Mon, 19 Mar 2018 21:58:02 +0000 (21:58 +0000)
commitb76a2f8b81f8390bb2d22dba10603142c775bd8a
tree6042222d8a13f11974334928253f09839bfb8bb4
parentc1a9456cbdd128825080bb55772eec003723828c
[X86] Simplify the AVX512 code in LowerTruncate a little.

We don't need to create an ISD::TRUNCATE node to return, we started with one and can return it. Also remove the call to getExtendInVec, the result is just going to be a getNode of that value passed in.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@327914 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelLowering.cpp