OSDN Git Service

[X86] Remove some questionable looking code that seems to be looking through a VZEXT...
authorCraig Topper <craig.topper@intel.com>
Wed, 29 Nov 2017 23:08:25 +0000 (23:08 +0000)
committerCraig Topper <craig.topper@intel.com>
Wed, 29 Nov 2017 23:08:25 +0000 (23:08 +0000)
If the input the vzext was signed this would do the wrong thing.

Not sure how to test this.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@319382 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86ISelLowering.cpp

index 051a762..36c284b 100644 (file)
@@ -18285,7 +18285,7 @@ static SDValue LowerSIGN_EXTEND_AVX512(SDValue Op,
 
   if (VT.is512BitVector() && InVTElt != MVT::i1 &&
       (NumElts == 8 || NumElts == 16 || Subtarget.hasBWI())) {
-    if (In.getOpcode() == X86ISD::VSEXT || In.getOpcode() == X86ISD::VZEXT)
+    if (In.getOpcode() == X86ISD::VSEXT)
       return getExtendInVec(In.getOpcode(), dl, VT, In.getOperand(0), DAG);
     return getExtendInVec(X86ISD::VSEXT, dl, VT, In, DAG);
   }