aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Transforms/Scalar
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-11-10 04:10:50 +0000
committerChris Lattner <sabre@nondot.org>2003-11-10 04:10:50 +0000
commitd23520cd9403c3c6fe8e7ea974ae0b593772345c (patch)
treebd0fb5a67aa625640d84831e32dd68abb1b55a94 /lib/Transforms/Scalar
parentd9c5c5e12ff2d8856da61c3fa009d0f960255029 (diff)
downloadexternal_llvm-d23520cd9403c3c6fe8e7ea974ae0b593772345c.zip
external_llvm-d23520cd9403c3c6fe8e7ea974ae0b593772345c.tar.gz
external_llvm-d23520cd9403c3c6fe8e7ea974ae0b593772345c.tar.bz2
Adjust to new critical edge interface
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9853 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Scalar')
-rw-r--r--lib/Transforms/Scalar/CorrelatedExprs.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/Transforms/Scalar/CorrelatedExprs.cpp b/lib/Transforms/Scalar/CorrelatedExprs.cpp
index 8e6a2ae..aad9b7f 100644
--- a/lib/Transforms/Scalar/CorrelatedExprs.cpp
+++ b/lib/Transforms/Scalar/CorrelatedExprs.cpp
@@ -29,13 +29,12 @@
#include "llvm/Transforms/Scalar.h"
#include "llvm/Pass.h"
#include "llvm/Function.h"
-#include "llvm/iTerminators.h"
-#include "llvm/iPHINode.h"
-#include "llvm/iOperators.h"
+#include "llvm/Instructions.h"
#include "llvm/ConstantHandling.h"
-#include "llvm/Assembly/Writer.h"
#include "llvm/Analysis/Dominators.h"
+#include "llvm/Assembly/Writer.h"
#include "llvm/Transforms/Utils/Local.h"
+#include "llvm/Transforms/Utils/BasicBlockUtils.h"
#include "llvm/Support/ConstantRange.h"
#include "llvm/Support/CFG.h"
#include "Support/Debug.h"
@@ -605,8 +604,7 @@ void CEE::ForwardSuccessorTo(TerminatorInst *TI, unsigned SuccNo,
// If we just introduced a critical edge in the flow graph, make sure to break
// it right away...
- if (isCriticalEdge(TI, SuccNo))
- SplitCriticalEdge(TI, SuccNo, this);
+ SplitCriticalEdge(TI, SuccNo, this);
// Make sure that we don't introduce critical edges from oldsucc now!
for (unsigned i = 0, e = OldSucc->getTerminator()->getNumSuccessors();