Fix an obvious bug in getPackedTypeBreakdown. Return 1 if type is legal.
authorEvan Cheng <evan.cheng@apple.com>
Wed, 17 May 2006 18:10:06 +0000 (18:10 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Wed, 17 May 2006 18:10:06 +0000 (18:10 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28351 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/TargetLowering.cpp

index 97ed577d3c637e0df75a6369c433a48d323f619b..de73b7254362ccf174c49f607b104bdbd67fe1c0 100644 (file)
@@ -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;
 }
 
 //===----------------------------------------------------------------------===//