summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-03-31 02:06:56 +0000
committerChris Lattner <sabre@nondot.org>2006-03-31 02:06:56 +0000
commit5fe1f54c173a1a9ca669e52bcde33a4734a73f1c (patch)
treee2c12deefb348a7600b78ca97bf0f648922afa80 /llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
parent051f7861b890240fd62b91f4f8a9a83774ed30d2 (diff)
downloadbcm5719-llvm-5fe1f54c173a1a9ca669e52bcde33a4734a73f1c.tar.gz
bcm5719-llvm-5fe1f54c173a1a9ca669e52bcde33a4734a73f1c.zip
Significantly improve handling of vectors that are live across basic blocks,
handling cases where the vector elements need promotion, expansion, and when the vector type itself needs to be decimated. llvm-svn: 27278
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
index a2c423fbcb4..dda5cfe772f 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
@@ -1162,8 +1162,7 @@ SDOperand SelectionDAG::getNode(unsigned Opcode, MVT::ValueType VT,
break;
case ISD::BIT_CONVERT:
// Basic sanity checking.
- assert((Operand.getValueType() == MVT::Vector || // FIXME: This is a hack.
- MVT::getSizeInBits(VT) == MVT::getSizeInBits(Operand.getValueType()))
+ assert(MVT::getSizeInBits(VT) == MVT::getSizeInBits(Operand.getValueType())
&& "Cannot BIT_CONVERT between two different types!");
if (VT == Operand.getValueType()) return Operand; // noop conversion.
if (OpOpcode == ISD::BIT_CONVERT) // bitconv(bitconv(x)) -> bitconv(x)
OpenPOWER on IntegriCloud