From: Chris Lattner Date: Sat, 18 Apr 2009 20:48:07 +0000 (+0000) Subject: Fix PR3898, which manifests as failures on are an Xcore, X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=2f992d13ea0ccfe3f9ce359b4c534d9b34b0e7cd;p=oota-llvm.git Fix PR3898, which manifests as failures on are an Xcore, patch by Jakob Stoklund Olesen! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@69472 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/SelectionDAG/TargetLowering.cpp b/lib/CodeGen/SelectionDAG/TargetLowering.cpp index 7b83a127074..96f815f599b 100644 --- a/lib/CodeGen/SelectionDAG/TargetLowering.cpp +++ b/lib/CodeGen/SelectionDAG/TargetLowering.cpp @@ -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.