[llvm-commits] CVS: llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
Chris Lattner
lattner at cs.uiuc.edu
Mon Apr 3 10:29:41 PDT 2006
Changes in directory llvm/lib/CodeGen/SelectionDAG:
DAGCombiner.cpp updated: 1.142 -> 1.143
---
Log message:
Add a missing check, this fixes UnitTests/Vector/sumarray.c
---
Diffs of the changes: (+2 -2)
DAGCombiner.cpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
Index: llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp:1.142 llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp:1.143
--- llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp:1.142 Mon Apr 3 12:21:50 2006
+++ llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp Mon Apr 3 12:29:28 2006
@@ -2017,8 +2017,8 @@
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);
}
}
More information about the llvm-commits
mailing list