summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@intel.com>2017-11-29 23:08:25 +0000
committerCraig Topper <craig.topper@intel.com>2017-11-29 23:08:25 +0000
commit56a41d4b3a0c44f83f1763c39120eaea45bb8996 (patch)
treef55aef9aa35c15f7ba4dbe11a1819e140cda81e2
parent4b1acff9b3924a643791015eba08af57d91f81fa (diff)
downloadbcm5719-llvm-56a41d4b3a0c44f83f1763c39120eaea45bb8996.tar.gz
bcm5719-llvm-56a41d4b3a0c44f83f1763c39120eaea45bb8996.zip
[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. llvm-svn: 319382
-rw-r--r--llvm/lib/Target/X86/X86ISelLowering.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/X86/X86ISelLowering.cpp b/llvm/lib/Target/X86/X86ISelLowering.cpp
index 051a7624e0f..36c284b0bc1 100644
--- a/llvm/lib/Target/X86/X86ISelLowering.cpp
+++ b/llvm/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);
}
OpenPOWER on IntegriCloud