mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-29 15:04:57 +00:00
Reverse branch condition only when there is a conditional branch.
llvm-svn: 71214
This commit is contained in:
parent
a8f179d44b
commit
10038ab095
@ -211,7 +211,8 @@ bool CodePlacementOpt::OptimizeIntraLoopEdges() {
|
||||
} else if (!FBB && SSMBB == TBB && Cond.empty()) {
|
||||
TBB = 0;
|
||||
--Cost;
|
||||
} else if (!TII->ReverseBranchCondition(Cond)) {
|
||||
} else if (!Cond.empty() && !TII->ReverseBranchCondition(Cond)) {
|
||||
assert(SSMBB == TBB);
|
||||
TBB = FBB;
|
||||
FBB = 0;
|
||||
--Cost;
|
||||
|
Loading…
Reference in New Issue
Block a user