projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b1acff
)
[X86] Remove some questionable looking code that seems to be looking through a VZEXT...
author
Craig Topper
<craig.topper@intel.com>
Wed, 29 Nov 2017 23:08:25 +0000
(23:08 +0000)
committer
Craig 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.
llvm-svn: 319382
llvm/lib/Target/X86/X86ISelLowering.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Target/X86/X86ISelLowering.cpp
b/llvm/lib/Target/X86/X86ISelLowering.cpp
index
051a762
..
36c284b
100644
(file)
--- 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);
}