summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Scalar/CorrelatedExprs.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-10-28 06:38:14 +0000
committerChris Lattner <sabre@nondot.org>2006-10-28 06:38:14 +0000
commit400ac04e6454497c007148adb1c2cb489bd1477e (patch)
tree336b6d4358da75b3a892e7b89767a663bc66b698 /llvm/lib/Transforms/Scalar/CorrelatedExprs.cpp
parentb78eb6c8d1b2c9a70dfb4c6e112d240abd359755 (diff)
downloadbcm5719-llvm-400ac04e6454497c007148adb1c2cb489bd1477e.tar.gz
bcm5719-llvm-400ac04e6454497c007148adb1c2cb489bd1477e.zip
SplitCriticalEdge checks to see if an edge is critical, don't check twice
llvm-svn: 31255
Diffstat (limited to 'llvm/lib/Transforms/Scalar/CorrelatedExprs.cpp')
-rw-r--r--llvm/lib/Transforms/Scalar/CorrelatedExprs.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Scalar/CorrelatedExprs.cpp b/llvm/lib/Transforms/Scalar/CorrelatedExprs.cpp
index 4c5025659cc..35e6a971f15 100644
--- a/llvm/lib/Transforms/Scalar/CorrelatedExprs.cpp
+++ b/llvm/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!
OpenPOWER on IntegriCloud