diff options
author | Jakub Staszak <kubastaszak@gmail.com> | 2013-02-14 21:50:09 +0000 |
---|---|---|
committer | Jakub Staszak <kubastaszak@gmail.com> | 2013-02-14 21:50:09 +0000 |
commit | fe9b5a4f74c5686ab479dd42bd87e654834a8ba4 (patch) | |
tree | a4b5dac395e0c6ac25e7c120e4fff98e6abc4dbe /lib/Target/X86 | |
parent | 27d844f4d0fa82e89bd0a1d10b477338f970b8f7 (diff) | |
download | external_llvm-fe9b5a4f74c5686ab479dd42bd87e654834a8ba4.zip external_llvm-fe9b5a4f74c5686ab479dd42bd87e654834a8ba4.tar.gz external_llvm-fe9b5a4f74c5686ab479dd42bd87e654834a8ba4.tar.bz2 |
Simplify code. Remove "else after return".
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175212 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86')
-rw-r--r-- | lib/Target/X86/X86FastISel.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/Target/X86/X86FastISel.cpp b/lib/Target/X86/X86FastISel.cpp index b6c1512..7f230ff 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. |