OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0d479ec
)
Make sure operand does have size and element type operands.
author
Evan Cheng
<evan.cheng@apple.com>
Tue, 17 Oct 2006 17:06:35 +0000
(17:06 +0000)
committer
Evan Cheng
<evan.cheng@apple.com>
Tue, 17 Oct 2006 17:06:35 +0000
(17:06 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30999
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
index
a27adba
..
474ae28
100644
(file)
--- a/
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+++ b/
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
@@
-3114,7
+3114,8
@@
SDOperand DAGCombiner::visitVVECTOR_SHUFFLE(SDNode *N) {
// look though conversions that change things like v4f32 to v2f64.
if (V->getOpcode() == ISD::VBIT_CONVERT) {
SDOperand ConvInput = V->getOperand(0);
- if (NumElts ==
+ if (ConvInput.getValueType() == MVT::Vector &&
+ NumElts ==
ConvInput.getConstantOperandVal(ConvInput.getNumOperands()-2))
V = ConvInput.Val;
}