[llvm-commits] CVS: llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
Chris Lattner
sabre at nondot.org
Wed Apr 11 21:44:45 PDT 2007
Changes in directory llvm/lib/CodeGen/SelectionDAG:
TargetLowering.cpp updated: 1.107 -> 1.108
---
Log message:
Fix weirdness handling single element vectors.
---
Diffs of the changes: (+2 -5)
TargetLowering.cpp | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
Index: llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp:1.107 llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp:1.108
--- llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp:1.107 Mon Apr 9 18:34:08 2007
+++ llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp Wed Apr 11 23:44:28 2007
@@ -303,12 +303,9 @@
NumVectorRegs <<= 1;
}
- MVT::ValueType VT;
- if (NumElts == 1) {
+ MVT::ValueType VT = getVectorType(EltTy, NumElts);
+ if (!isTypeLegal(VT))
VT = EltTy;
- } else {
- VT = getVectorType(EltTy, NumElts);
- }
PTyElementVT = VT;
MVT::ValueType DestVT = getTypeToTransformTo(VT);
More information about the llvm-commits
mailing list