diff options
author | Chris Lattner <sabre@nondot.org> | 2008-11-27 07:43:12 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-11-27 07:43:12 +0000 |
commit | b29714a10af94b6daae437e48a82ae32675f79cb (patch) | |
tree | 721beae668cac37c95440205fdb9f382583c618e /include/llvm/Transforms/Utils/Local.h | |
parent | 753e3ba5a6a715fc2f68819dfd91ada9bf59f249 (diff) |
move MergeBasicBlockIntoOnlyPred to Transforms/Utils.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60162 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Transforms/Utils/Local.h')
-rw-r--r-- | include/llvm/Transforms/Utils/Local.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/llvm/Transforms/Utils/Local.h b/include/llvm/Transforms/Utils/Local.h index e65638d94a..4292729756 100644 --- a/include/llvm/Transforms/Utils/Local.h +++ b/include/llvm/Transforms/Utils/Local.h @@ -62,6 +62,14 @@ bool dceInstruction(BasicBlock::iterator &BBI); // Control Flow Graph Restructuring... // +/// MergeBasicBlockIntoOnlyPred - BB is a block with one predecessor and its +/// predecessor is known to have one successor (BB!). Eliminate the edge +/// between them, moving the instructions in the predecessor into BB. This +/// deletes the predecessor block. +/// +void MergeBasicBlockIntoOnlyPred(BasicBlock *BB); + + /// SimplifyCFG - This function is used to do simplification of a CFG. For /// example, it adjusts branches to branches to eliminate the extra hop, it /// eliminates unreachable basic blocks, and does other "peephole" optimization |