Fix PR3898, which manifests as failures on are an Xcore,
authorChris Lattner <sabre@nondot.org>
Sat, 18 Apr 2009 20:48:07 +0000 (20:48 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 18 Apr 2009 20:48:07 +0000 (20:48 +0000)
patch by Jakob Stoklund Olesen!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@69472 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/TargetLowering.cpp

index 7b83a127074ba756b5d73c0a358f937c6d2e846d..96f815f599b8d59061acb676a986e3d093d9dbf8 100644 (file)
@@ -676,7 +676,7 @@ unsigned TargetLowering::getVectorTypeBreakdown(MVT VT,
     NewVT = EltTy;
   IntermediateVT = NewVT;
 
-  MVT DestVT = getTypeToTransformTo(NewVT);
+  MVT DestVT = getRegisterType(NewVT);
   RegisterVT = DestVT;
   if (DestVT.bitsLT(NewVT)) {
     // Value is expanded, e.g. i64 -> i16.