mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-05-03 12:37:56 +00:00
Add explicit braces to disambiguate nested if/else. Removes a warning.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71211 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
48f95ad971
commit
0ab2dcee5b
@ -203,7 +203,7 @@ bool CodePlacementOpt::OptimizeIntraLoopEdges() {
|
|||||||
if (SuccMBB->isLayoutSuccessor(SSMBB))
|
if (SuccMBB->isLayoutSuccessor(SSMBB))
|
||||||
// This will become a jmp.
|
// This will become a jmp.
|
||||||
++Cost;
|
++Cost;
|
||||||
else if (MBB->isLayoutSuccessor(SSMBB))
|
else if (MBB->isLayoutSuccessor(SSMBB)) {
|
||||||
// One of the successor will become the new fallthrough.
|
// One of the successor will become the new fallthrough.
|
||||||
if (SSMBB == FBB) {
|
if (SSMBB == FBB) {
|
||||||
FBB = 0;
|
FBB = 0;
|
||||||
@ -216,6 +216,7 @@ bool CodePlacementOpt::OptimizeIntraLoopEdges() {
|
|||||||
FBB = 0;
|
FBB = 0;
|
||||||
--Cost;
|
--Cost;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (Cost)
|
if (Cost)
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user