diff options
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp b/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp index 81c51c49b72..5b00adb52a2 100644 --- a/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp @@ -682,7 +682,7 @@ void TargetLowering::computeRegisterProperties() {        for (unsigned nVT = i+1; nVT <= MVT::LAST_VECTOR_VALUETYPE; ++nVT) {          EVT SVT = (MVT::SimpleValueType)nVT;          if (isTypeLegal(SVT) && SVT.getVectorElementType() == EltVT && -            SVT.getVectorNumElements() > NElts) { +            SVT.getVectorNumElements() > NElts && NElts != 1) {            TransformToType[i] = SVT;            ValueTypeActions.setTypeAction(VT, Promote);            IsLegalWiderType = true; | 

