diff options
author | Chris Lattner <sabre@nondot.org> | 2006-10-28 06:38:14 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-10-28 06:38:14 +0000 |
commit | f6de8ad1a26a84c9713ede78df59d5ca579fa9a8 (patch) | |
tree | d193800772d8729fed6a0bbc8c9b3785320b6fd1 | |
parent | 6fb6ef4d65abcbbb0b0d81e1b51d99949664ac86 (diff) |
SplitCriticalEdge checks to see if an edge is critical, don't check twice
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31255 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Transforms/Scalar/CorrelatedExprs.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Transforms/Scalar/CorrelatedExprs.cpp b/lib/Transforms/Scalar/CorrelatedExprs.cpp index 4c5025659c..35e6a971f1 100644 --- a/lib/Transforms/Scalar/CorrelatedExprs.cpp +++ b/lib/Transforms/Scalar/CorrelatedExprs.cpp @@ -621,8 +621,7 @@ void CEE::ForwardSuccessorTo(TerminatorInst *TI, unsigned SuccNo, // Make sure that we don't introduce critical edges from oldsucc now! for (unsigned i = 0, e = OldSucc->getTerminator()->getNumSuccessors(); i != e; ++i) - if (isCriticalEdge(OldSucc->getTerminator(), i)) - SplitCriticalEdge(OldSucc->getTerminator(), i, this); + SplitCriticalEdge(OldSucc->getTerminator(), i, this); // Since we invalidated the CFG, recalculate the dominator set so that it is // useful for later processing! |