diff options
author | Chris Lattner <sabre@nondot.org> | 2006-04-03 17:29:28 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-04-03 17:29:28 +0000 |
commit | 97c2073270e59efd966e9fe1c9b6697cc863d680 (patch) | |
tree | 5bf01bacca2abd3018d63f4c497ca95e1924d385 /lib/CodeGen | |
parent | a4c5d8c6b4e91b880fcd1b8b293f330e3aa198a3 (diff) | |
download | external_llvm-97c2073270e59efd966e9fe1c9b6697cc863d680.zip external_llvm-97c2073270e59efd966e9fe1c9b6697cc863d680.tar.gz external_llvm-97c2073270e59efd966e9fe1c9b6697cc863d680.tar.bz2 |
Add a missing check, this fixes UnitTests/Vector/sumarray.c
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27375 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r-- | lib/CodeGen/SelectionDAG/DAGCombiner.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp index aacee99..c982e5b 100644 --- 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); } } |