Fix an obvious bug in getPackedTypeBreakdown. Return 1 if type is legal.
llvm-svn: 28351
diff --git a/llvm/lib/Target/TargetLowering.cpp b/llvm/lib/Target/TargetLowering.cpp
index 97ed577..de73b72 100644
--- a/llvm/lib/Target/TargetLowering.cpp
+++ b/llvm/lib/Target/TargetLowering.cpp
@@ -144,7 +144,7 @@
}
/// 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 @@
return NumVectorRegs;
}
- return DestVT;
+ return 1;
}
//===----------------------------------------------------------------------===//