[llvm] r175212 - Simplify code. Remove "else after return".
Jakub Staszak
kubastaszak at gmail.com
Thu Feb 14 13:50:10 PST 2013
Author: kuba
Date: Thu Feb 14 15:50:09 2013
New Revision: 175212
URL: http://llvm.org/viewvc/llvm-project?rev=175212&view=rev
Log:
Simplify code. Remove "else after return".
Modified:
llvm/trunk/lib/Target/X86/X86FastISel.cpp
Modified: llvm/trunk/lib/Target/X86/X86FastISel.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86FastISel.cpp?rev=175212&r1=175211&r2=175212&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86FastISel.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86FastISel.cpp Thu Feb 14 15:50:09 2013
@@ -326,12 +326,11 @@ bool X86FastISel::X86FastEmitExtend(ISD:
unsigned &ResultReg) {
unsigned RR = FastEmit_r(SrcVT.getSimpleVT(), DstVT.getSimpleVT(), Opc,
Src, /*TODO: Kill=*/false);
-
- if (RR != 0) {
- ResultReg = RR;
- return true;
- } else
+ if (RR == 0)
return false;
+
+ ResultReg = RR;
+ return true;
}
/// X86SelectAddress - Attempt to fill in an address from the given value.
More information about the llvm-commits
mailing list