diff --git a/llvm/lib/Target/X86/X86ISelLowering.cpp b/llvm/lib/Target/X86/X86ISelLowering.cpp index 15115115b92f..18f32768a069 100644 --- a/llvm/lib/Target/X86/X86ISelLowering.cpp +++ b/llvm/lib/Target/X86/X86ISelLowering.cpp @@ -35571,10 +35571,10 @@ static SDValue combineVectorTruncation(SDNode *N, SelectionDAG &DAG, // truncate 2 x v4i32 to v8i16. if (Subtarget.hasSSE41() || OutSVT == MVT::i8) return combineVectorTruncationWithPACKUS(N, DAG, SubVec); - else if (InSVT == MVT::i32) + if (InSVT == MVT::i32) return combineVectorTruncationWithPACKSS(N, Subtarget, DAG, SubVec); - else - return SDValue(); + + return SDValue(); } /// This function transforms vector truncation of 'extended sign-bits' or