[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)
commitab6076514d435bba09bc9a706e3896a4dce6ef8e
tree992bb136e44a053bc97e0fb7f33749d8239574f4
parentba9355b373529582ba6ac945487d77b1b8c724da
[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.

llvm-svn: 327914
llvm/lib/Target/X86/X86ISelLowering.cpp