[llvm] r326642 - [X86] Remove 'else' after return. NFC
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 2 21:18:21 PST 2018
Author: ctopper
Date: Fri Mar 2 21:18:21 2018
New Revision: 326642
URL: http://llvm.org/viewvc/llvm-project?rev=326642&view=rev
Log:
[X86] Remove 'else' after return. NFC
Modified:
llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
Modified: llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86ISelLowering.cpp?rev=326642&r1=326641&r2=326642&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Fri Mar 2 21:18:21 2018
@@ -35571,10 +35571,10 @@ static SDValue combineVectorTruncation(S
// 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
More information about the llvm-commits
mailing list