[llvm-commits] CVS: llvm/lib/Target/X86/X86ISelLowering.cpp
Evan Cheng
evan.cheng at apple.com
Mon Apr 24 15:59:04 PDT 2006
Changes in directory llvm/lib/Target/X86:
X86ISelLowering.cpp updated: 1.185 -> 1.186
---
Log message:
Special case handling two wide build_vector(0, x).
---
Diffs of the changes: (+4 -4)
X86ISelLowering.cpp | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
Index: llvm/lib/Target/X86/X86ISelLowering.cpp
diff -u llvm/lib/Target/X86/X86ISelLowering.cpp:1.185 llvm/lib/Target/X86/X86ISelLowering.cpp:1.186
--- llvm/lib/Target/X86/X86ISelLowering.cpp:1.185 Mon Apr 24 13:01:45 2006
+++ llvm/lib/Target/X86/X86ISelLowering.cpp Mon Apr 24 17:58:52 2006
@@ -3236,10 +3236,6 @@
MVT::ValueType EVT = MVT::getVectorBaseType(VT);
unsigned EVTBits = MVT::getSizeInBits(EVT);
- // Let legalizer expand 2-widde build_vector's.
- if (EVTBits == 64)
- return SDOperand();
-
unsigned NumElems = Op.getNumOperands();
unsigned NumZero = 0;
unsigned NumNonZero = 0;
@@ -3291,6 +3287,10 @@
}
}
+ // Let legalizer expand 2-widde build_vector's.
+ if (EVTBits == 64)
+ return SDOperand();
+
// If element VT is < 32 bits, convert it to inserts into a zero vector.
if (EVTBits == 8) {
SDOperand V = LowerBuildVectorv16i8(Op, NonZeros,NumNonZero,NumZero, DAG);
More information about the llvm-commits
mailing list