summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-04-03 17:29:28 +0000
committerChris Lattner <sabre@nondot.org>2006-04-03 17:29:28 +0000
commite1e3adf802813176ca33b29bcbb0ef1af4021b31 (patch)
treebc7449d8a62de4c6278c72891f2c05a24c872721 /llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
parent04c00fc844cfd3cb7df176d8251371ac5d0d7f2e (diff)
downloadbcm5719-llvm-e1e3adf802813176ca33b29bcbb0ef1af4021b31.tar.gz
bcm5719-llvm-e1e3adf802813176ca33b29bcbb0ef1af4021b31.zip
Add a missing check, this fixes UnitTests/Vector/sumarray.c
llvm-svn: 27375
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
index aacee99ed99..c982e5be8fc 100644
--- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+++ b/llvm/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);
}
}
OpenPOWER on IntegriCloud