diff options
author | Chris Lattner <sabre@nondot.org> | 2006-10-28 06:58:17 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-10-28 06:58:17 +0000 |
commit | b57de3328d3826e1f270f3a38256ff67aaec1871 (patch) | |
tree | b01fcf7a41db1dd1267c586fbfca631a8f09c623 /include/llvm/Transforms | |
parent | 0997fadc3781c3f7e9386ec0f232aaba795f14e3 (diff) | |
download | external_llvm-b57de3328d3826e1f270f3a38256ff67aaec1871.zip external_llvm-b57de3328d3826e1f270f3a38256ff67aaec1871.tar.gz external_llvm-b57de3328d3826e1f270f3a38256ff67aaec1871.tar.bz2 |
add option to isCriticalEdge
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31258 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Transforms')
-rw-r--r-- | include/llvm/Transforms/Utils/BasicBlockUtils.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/llvm/Transforms/Utils/BasicBlockUtils.h b/include/llvm/Transforms/Utils/BasicBlockUtils.h index 0bfb6f7..25f3839 100644 --- a/include/llvm/Transforms/Utils/BasicBlockUtils.h +++ b/include/llvm/Transforms/Utils/BasicBlockUtils.h @@ -57,7 +57,8 @@ void RemoveSuccessor(TerminatorInst *TI, unsigned SuccNum); /// Critical edges are edges from a block with multiple successors to a block /// with multiple predecessors. /// -bool isCriticalEdge(const TerminatorInst *TI, unsigned SuccNum); +bool isCriticalEdge(const TerminatorInst *TI, unsigned SuccNum, + bool AllowIdenticalEdges = false); /// SplitCriticalEdge - If this edge is a critical edge, insert a new node to /// split the critical edge. This will update DominatorSet, ImmediateDominator, |