projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
48f95ad
)
Add explicit braces to disambiguate nested if/else. Removes a warning.
author
Nick Lewycky
<nicholas@mxc.ca>
Fri, 8 May 2009 06:57:41 +0000
(06:57 +0000)
committer
Nick Lewycky
<nicholas@mxc.ca>
Fri, 8 May 2009 06:57:41 +0000
(06:57 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71211
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/CodePlacementOpt.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/CodePlacementOpt.cpp
b/lib/CodeGen/CodePlacementOpt.cpp
index d297d5aceb6513397a240ec5f6f3ed04002c1190..f6a8421c43480a69486bb4832ee62a555334aa1b 100644
(file)
--- a/
lib/CodeGen/CodePlacementOpt.cpp
+++ b/
lib/CodeGen/CodePlacementOpt.cpp
@@
-203,7
+203,7
@@
bool CodePlacementOpt::OptimizeIntraLoopEdges() {
if (SuccMBB->isLayoutSuccessor(SSMBB))
// This will become a jmp.
++Cost;
- else if (MBB->isLayoutSuccessor(SSMBB))
+ else if (MBB->isLayoutSuccessor(SSMBB))
{
// One of the successor will become the new fallthrough.
if (SSMBB == FBB) {
FBB = 0;
@@
-216,6
+216,7
@@
bool CodePlacementOpt::OptimizeIntraLoopEdges() {
FBB = 0;
--Cost;
}
+ }
}
if (Cost)
continue;