Skip to content
This repository was archived by the owner on Jan 26, 2024. It is now read-only.

Commit 9bbfe0f

Browse files
committed
[NFC] Remove obsolete simplifyOnceImpl function
The function simplifyOnce only calls simplifyOnceImpl and does nothing else. Having this separate helper makes no sense. Removing it. Patch by Dmitry Bakunevich! Differential Revision: https://reviews.llvm.org/D112517 Reviewed By: mkazantsev
1 parent a360323 commit 9bbfe0f

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

llvm/lib/Transforms/Utils/SimplifyCFG.cpp

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,6 @@ class SimplifyCFGOpt {
280280
}
281281

282282
bool simplifyOnce(BasicBlock *BB);
283-
bool simplifyOnceImpl(BasicBlock *BB);
284283
bool run(BasicBlock *BB);
285284

286285
// Helper to set Resimplify and return change indication.
@@ -6680,7 +6679,7 @@ static bool removeUndefIntroducingPredecessor(BasicBlock *BB,
66806679
return false;
66816680
}
66826681

6683-
bool SimplifyCFGOpt::simplifyOnceImpl(BasicBlock *BB) {
6682+
bool SimplifyCFGOpt::simplifyOnce(BasicBlock *BB) {
66846683
bool Changed = false;
66856684

66866685
assert(BB && BB->getParent() && "Block not embedded in function!");
@@ -6760,12 +6759,6 @@ bool SimplifyCFGOpt::simplifyOnceImpl(BasicBlock *BB) {
67606759
return Changed;
67616760
}
67626761

6763-
bool SimplifyCFGOpt::simplifyOnce(BasicBlock *BB) {
6764-
bool Changed = simplifyOnceImpl(BB);
6765-
6766-
return Changed;
6767-
}
6768-
67696762
bool SimplifyCFGOpt::run(BasicBlock *BB) {
67706763
bool Changed = false;
67716764

0 commit comments

Comments
 (0)