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:
a4c5d8c
)
Add a missing check, this fixes UnitTests/Vector/sumarray.c
author
Chris Lattner
<sabre@nondot.org>
Mon, 3 Apr 2006 17:29:28 +0000
(17:29 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Mon, 3 Apr 2006 17:29:28 +0000
(17:29 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27375
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 aacee99ed9936865a6b3b77a2824e3693275496a..c982e5be8fc0d4d2fd4756f492d393767e9c9a2e 100644
(file)
--- a/
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+++ b/
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
@@
-2017,8
+2017,8
@@
SDOperand DAGCombiner::visitVBIT_CONVERT(SDNode *N) {
break;
}
- if (isSimple) {
- MVT::ValueType DestEltVT = cast<VTSDNode>(N->getOperand(2))->getVT();
+ MVT::ValueType DestEltVT = cast<VTSDNode>(N->getOperand(2))->getVT();
+ if (isSimple && !MVT::isVector(DestEltVT)) {
return ConstantFoldVBIT_CONVERTofVBUILD_VECTOR(N0.Val, DestEltVT);
}
}