From: Craig Topper Date: Wed, 29 Nov 2017 23:08:25 +0000 (+0000) Subject: [X86] Remove some questionable looking code that seems to be looking through a VZEXT... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0a78cd8e7f5af81085256886179076966d74bb20;p=llvm [X86] Remove some questionable looking code that seems to be looking through a VZEXT to create a larger VSEXT. 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 --- diff --git a/lib/Target/X86/X86ISelLowering.cpp b/lib/Target/X86/X86ISelLowering.cpp index 051a7624e0f..36c284b0bc1 100644 --- a/lib/Target/X86/X86ISelLowering.cpp +++ b/lib/Target/X86/X86ISelLowering.cpp @@ -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); }