projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
790ecc0
)
Simplify code. Remove "else after return".
author
Jakub Staszak
<kubastaszak@gmail.com>
Thu, 14 Feb 2013 21:50:09 +0000
(21:50 +0000)
committer
Jakub Staszak
<kubastaszak@gmail.com>
Thu, 14 Feb 2013 21:50:09 +0000
(21:50 +0000)
llvm-svn: 175212
llvm/lib/Target/X86/X86FastISel.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Target/X86/X86FastISel.cpp
b/llvm/lib/Target/X86/X86FastISel.cpp
index b6c15123aed70e4fb1327a626e1c38270b66cf35..7f230ff571845fa1c24b3a4870680e2928d5969f 100644
(file)
--- a/
llvm/lib/Target/X86/X86FastISel.cpp
+++ b/
llvm/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.