summaryrefslogtreecommitdiff
path: root/lib/CodeGen/SelectionDAG
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2006-05-17 18:10:06 +0000
committerEvan Cheng <evan.cheng@apple.com>2006-05-17 18:10:06 +0000
commite9b3da17cdc5b54bb1194043f27d4d2914d77097 (patch)
tree39415d3df2f5a764c7f5c93ecf2966c5308f712e /lib/CodeGen/SelectionDAG
parent5beaacc189a5c6e6223a55c3ff121dccc4c44a56 (diff)
downloadllvm-e9b3da17cdc5b54bb1194043f27d4d2914d77097.tar.gz
llvm-e9b3da17cdc5b54bb1194043f27d4d2914d77097.tar.bz2
llvm-e9b3da17cdc5b54bb1194043f27d4d2914d77097.tar.xz
Fix an obvious bug in getPackedTypeBreakdown. Return 1 if type is legal.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28351 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG')
-rw-r--r--lib/CodeGen/SelectionDAG/TargetLowering.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/SelectionDAG/TargetLowering.cpp b/lib/CodeGen/SelectionDAG/TargetLowering.cpp
index 97ed577d3c..de73b72543 100644
--- a/lib/CodeGen/SelectionDAG/TargetLowering.cpp
+++ b/lib/CodeGen/SelectionDAG/TargetLowering.cpp
@@ -144,7 +144,7 @@ const char *TargetLowering::getTargetNodeName(unsigned Opcode) const {
}
/// getPackedTypeBreakdown - Packed types are broken down into some number of
-/// legal scalar types. For example, <8 x float> maps to 2 MVT::v2f32 values
+/// legal first class types. For example, <8 x float> maps to 2 MVT::v2f32
/// with Altivec or SSE1, or 8 promoted MVT::f64 values with the X86 FP stack.
///
/// This method returns the number and type of the resultant breakdown.
@@ -184,7 +184,7 @@ unsigned TargetLowering::getPackedTypeBreakdown(const PackedType *PTy,
return NumVectorRegs;
}
- return DestVT;
+ return 1;
}
//===----------------------------------------------------------------------===//