diff options
Diffstat (limited to 'lib/CodeGen/SelectionDAG/TargetLowering.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/TargetLowering.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/CodeGen/SelectionDAG/TargetLowering.cpp b/lib/CodeGen/SelectionDAG/TargetLowering.cpp index f1cd9a5..d72c6eb 100644 --- a/lib/CodeGen/SelectionDAG/TargetLowering.cpp +++ b/lib/CodeGen/SelectionDAG/TargetLowering.cpp @@ -303,12 +303,9 @@ unsigned TargetLowering::getVectorTypeBreakdown(const VectorType *PTy, NumVectorRegs <<= 1; } - MVT::ValueType VT; - if (NumElts == 1) { + MVT::ValueType VT = getVectorType(EltTy, NumElts); + if (!isTypeLegal(VT)) VT = EltTy; - } else { - VT = getVectorType(EltTy, NumElts); - } PTyElementVT = VT; MVT::ValueType DestVT = getTypeToTransformTo(VT); |