diff options
author | Dan Gohman <gohman@apple.com> | 2010-08-14 00:29:42 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-08-14 00:29:42 +0000 |
commit | e2c6d131d12c779a410740e0a90545def75e0f48 (patch) | |
tree | e899545fbab9934f663643c00460d582f83819de /include/llvm/Transforms/Utils/Local.h | |
parent | 3d72367d30c9ce6f387764a028763f7a366cc443 (diff) | |
download | external_llvm-e2c6d131d12c779a410740e0a90545def75e0f48.zip external_llvm-e2c6d131d12c779a410740e0a90545def75e0f48.tar.gz external_llvm-e2c6d131d12c779a410740e0a90545def75e0f48.tar.bz2 |
Teach SimplifyCFG how to simplify indirectbr instructions.
- Eliminate redundant successors.
- Convert an indirectbr with one successor into a direct branch.
Also, generalize SimplifyCFG to be able to be run on a function entry block.
It knows quite a few simplifications which are applicable to the entry
block, and it only needs a few checks to avoid trouble with the entry block.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111060 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Transforms/Utils/Local.h')
-rw-r--r-- | include/llvm/Transforms/Utils/Local.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/include/llvm/Transforms/Utils/Local.h b/include/llvm/Transforms/Utils/Local.h index b277970..caae27f 100644 --- a/include/llvm/Transforms/Utils/Local.h +++ b/include/llvm/Transforms/Utils/Local.h @@ -118,8 +118,6 @@ bool EliminateDuplicatePHINodes(BasicBlock *BB); /// of the CFG. It returns true if a modification was made, possibly deleting /// the basic block that was pointed to. /// -/// WARNING: The entry node of a method may not be simplified. -/// bool SimplifyCFG(BasicBlock *BB, const TargetData *TD = 0); /// FoldBranchToCommonDest - If this basic block is ONLY a setcc and a branch, |