[llvm] 498db6a - [Transforms] Remove SplitCriticalEdge (NFC)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 25 08:59:29 PDT 2021
Author: Kazu Hirata
Date: 2021-08-25T08:59:13-07:00
New Revision: 498db6ab4382e93ee4239c3aa3be04dfab1b9dc9
URL: https://github.com/llvm/llvm-project/commit/498db6ab4382e93ee4239c3aa3be04dfab1b9dc9
DIFF: https://github.com/llvm/llvm-project/commit/498db6ab4382e93ee4239c3aa3be04dfab1b9dc9.diff
LOG: [Transforms] Remove SplitCriticalEdge (NFC)
These functions have not been in use for at least one year.
Added:
Modified:
llvm/include/llvm/Transforms/Utils/BasicBlockUtils.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/Transforms/Utils/BasicBlockUtils.h b/llvm/include/llvm/Transforms/Utils/BasicBlockUtils.h
index b45c1820bb200..4bea4c237771e 100644
--- a/llvm/include/llvm/Transforms/Utils/BasicBlockUtils.h
+++ b/llvm/include/llvm/Transforms/Utils/BasicBlockUtils.h
@@ -214,29 +214,6 @@ BasicBlock *SplitKnownCriticalEdge(Instruction *TI, unsigned SuccNum,
CriticalEdgeSplittingOptions(),
const Twine &BBName = "");
-inline BasicBlock *
-SplitCriticalEdge(BasicBlock *BB, succ_iterator SI,
- const CriticalEdgeSplittingOptions &Options =
- CriticalEdgeSplittingOptions()) {
- return SplitCriticalEdge(BB->getTerminator(), SI.getSuccessorIndex(),
- Options);
-}
-
-/// If the edge from *PI to BB is not critical, return false. Otherwise, split
-/// all edges between the two blocks and return true. This updates all of the
-/// same analyses as the other SplitCriticalEdge function. If P is specified, it
-/// updates the analyses described above.
-inline bool SplitCriticalEdge(BasicBlock *Succ, pred_iterator PI,
- const CriticalEdgeSplittingOptions &Options =
- CriticalEdgeSplittingOptions()) {
- bool MadeChange = false;
- Instruction *TI = (*PI)->getTerminator();
- for (unsigned i = 0, e = TI->getNumSuccessors(); i != e; ++i)
- if (TI->getSuccessor(i) == Succ)
- MadeChange |= !!SplitCriticalEdge(TI, i, Options);
- return MadeChange;
-}
-
/// If an edge from Src to Dst is critical, split the edge and return true,
/// otherwise return false. This method requires that there be an edge between
/// the two blocks. It updates the analyses passed in the options struct
More information about the llvm-commits
mailing list