Finish renaming remaining analyzeBranch functions
llvm-svn: 281535
This commit is contained in:
@@ -416,7 +416,7 @@ void MachineBasicBlock::updateTerminator() {
|
||||
// The block has an unconditional branch. If its successor is now its
|
||||
// layout successor, delete the branch.
|
||||
if (isLayoutSuccessor(TBB))
|
||||
TII->RemoveBranch(*this);
|
||||
TII->removeBranch(*this);
|
||||
} else {
|
||||
// The block has an unconditional fallthrough. If its successor is not its
|
||||
// layout successor, insert a branch. First we have to locate the only
|
||||
@@ -446,12 +446,12 @@ void MachineBasicBlock::updateTerminator() {
|
||||
// successors is its layout successor, rewrite it to a fallthrough
|
||||
// conditional branch.
|
||||
if (isLayoutSuccessor(TBB)) {
|
||||
if (TII->ReverseBranchCondition(Cond))
|
||||
if (TII->reverseBranchCondition(Cond))
|
||||
return;
|
||||
TII->RemoveBranch(*this);
|
||||
TII->removeBranch(*this);
|
||||
TII->insertBranch(*this, FBB, nullptr, Cond, DL);
|
||||
} else if (isLayoutSuccessor(FBB)) {
|
||||
TII->RemoveBranch(*this);
|
||||
TII->removeBranch(*this);
|
||||
TII->insertBranch(*this, TBB, nullptr, Cond, DL);
|
||||
}
|
||||
return;
|
||||
@@ -474,7 +474,7 @@ void MachineBasicBlock::updateTerminator() {
|
||||
// Remove the conditional jump, leaving unconditional fallthrough.
|
||||
// FIXME: This does not seem like a reasonable pattern to support, but it
|
||||
// has been seen in the wild coming out of degenerate ARM test cases.
|
||||
TII->RemoveBranch(*this);
|
||||
TII->removeBranch(*this);
|
||||
|
||||
// Finally update the unconditional successor to be reached via a branch if
|
||||
// it would not be reached by fallthrough.
|
||||
@@ -486,7 +486,7 @@ void MachineBasicBlock::updateTerminator() {
|
||||
// We enter here iff exactly one successor is TBB which cannot fallthrough
|
||||
// and the rest successors if any are EHPads. In this case, we need to
|
||||
// change the conditional branch into unconditional branch.
|
||||
TII->RemoveBranch(*this);
|
||||
TII->removeBranch(*this);
|
||||
Cond.clear();
|
||||
TII->insertBranch(*this, TBB, nullptr, Cond, DL);
|
||||
return;
|
||||
@@ -494,16 +494,16 @@ void MachineBasicBlock::updateTerminator() {
|
||||
|
||||
// The block has a fallthrough conditional branch.
|
||||
if (isLayoutSuccessor(TBB)) {
|
||||
if (TII->ReverseBranchCondition(Cond)) {
|
||||
if (TII->reverseBranchCondition(Cond)) {
|
||||
// We can't reverse the condition, add an unconditional branch.
|
||||
Cond.clear();
|
||||
TII->insertBranch(*this, FallthroughBB, nullptr, Cond, DL);
|
||||
return;
|
||||
}
|
||||
TII->RemoveBranch(*this);
|
||||
TII->removeBranch(*this);
|
||||
TII->insertBranch(*this, FallthroughBB, nullptr, Cond, DL);
|
||||
} else if (!isLayoutSuccessor(FallthroughBB)) {
|
||||
TII->RemoveBranch(*this);
|
||||
TII->removeBranch(*this);
|
||||
TII->insertBranch(*this, TBB, FallthroughBB, Cond, DL);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user