diff options
author | Owen Anderson <resistor@mac.com> | 2008-07-17 00:01:40 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2008-07-17 00:01:40 +0000 |
commit | b31b06d04b81c5383e2fba0cd44d4ba3f324a794 (patch) | |
tree | 550a9ec8e53cd9d7eac0538e6b2322fed375d56e /include/llvm/Transforms/Utils/BasicBlockUtils.h | |
parent | 413907000e6949849e4b9c2fabda7105f8bedabd (diff) |
Factor MergeBlockIntoPredecessor out into BasicBlockUtils.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53705 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Transforms/Utils/BasicBlockUtils.h')
-rw-r--r-- | include/llvm/Transforms/Utils/BasicBlockUtils.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/Transforms/Utils/BasicBlockUtils.h b/include/llvm/Transforms/Utils/BasicBlockUtils.h index a44095f27d..f1a7a26417 100644 --- a/include/llvm/Transforms/Utils/BasicBlockUtils.h +++ b/include/llvm/Transforms/Utils/BasicBlockUtils.h @@ -25,6 +25,10 @@ namespace llvm { class Instruction; class Pass; +/// MergeBlockIntoPredecessor - Attempts to merge a block into its predecessor, +/// if possible. The return value indicates success or failure. +bool MergeBlockIntoPredecessor(BasicBlock* BB, Pass* P); + // ReplaceInstWithValue - Replace all uses of an instruction (specified by BI) // with a value, then remove and delete the original instruction. // |