projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2e36335
)
Replace EVT with MVT in isHorizontalBinOp as it is only called with legal types.
author
Craig Topper
<craig.topper@gmail.com>
Tue, 6 Aug 2013 06:05:05 +0000
(06:05 +0000)
committer
Craig Topper
<craig.topper@gmail.com>
Tue, 6 Aug 2013 06:05:05 +0000
(06:05 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187779
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/X86/X86ISelLowering.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/X86/X86ISelLowering.cpp
b/lib/Target/X86/X86ISelLowering.cpp
index b5e138adb3a0e113ddd3c0fa3c5ea5b423f47f0c..ce940ad2db2041b9abf3a211a2c59c153f512adc 100644
(file)
--- a/
lib/Target/X86/X86ISelLowering.cpp
+++ b/
lib/Target/X86/X86ISelLowering.cpp
@@
-17721,7
+17721,7
@@
static bool isHorizontalBinOp(SDValue &LHS, SDValue &RHS, bool IsCommutative) {
RHS.getOpcode() != ISD::VECTOR_SHUFFLE)
return false;
-
EVT VT = LHS.getValueType
();
+
MVT VT = LHS.getValueType().getSimpleVT
();
assert((VT.is128BitVector() || VT.is256BitVector()) &&
"Unsupported vector type for horizontal add/sub");