From: Jakub Staszak Date: Thu, 14 Feb 2013 21:50:09 +0000 (+0000) Subject: Simplify code. Remove "else after return". X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=fe9b5a4f74c5686ab479dd42bd87e654834a8ba4;p=oota-llvm.git Simplify code. Remove "else after return". git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175212 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/X86/X86FastISel.cpp b/lib/Target/X86/X86FastISel.cpp index b6c15123aed..7f230ff5718 100644 --- a/lib/Target/X86/X86FastISel.cpp +++ b/lib/Target/X86/X86FastISel.cpp @@ -326,12 +326,11 @@ bool X86FastISel::X86FastEmitExtend(ISD::NodeType Opc, EVT DstVT, 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.