aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2007-07-06 18:12:36 +0000
committerOwen Anderson <resistor@mac.com>2007-07-06 18:12:36 +0000
commit2c194e6bd10b864e72b50c7cd071c5fd9c04282e (patch)
tree064359ac58b3ccc69cbba6a4d96b4135554b0d71
parent6a6152ca2dee8901c2527ea2f4bec65c051db147 (diff)
downloadexternal_llvm-2c194e6bd10b864e72b50c7cd071c5fd9c04282e.zip
external_llvm-2c194e6bd10b864e72b50c7cd071c5fd9c04282e.tar.gz
external_llvm-2c194e6bd10b864e72b50c7cd071c5fd9c04282e.tar.bz2
Achieve what the incorrect test was trying to do by simply requiring that all
critical edges be split before we begin. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37949 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Transforms/Scalar/GVNPRE.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/Transforms/Scalar/GVNPRE.cpp b/lib/Transforms/Scalar/GVNPRE.cpp
index 5fe4f0a..bedfb5d 100644
--- a/lib/Transforms/Scalar/GVNPRE.cpp
+++ b/lib/Transforms/Scalar/GVNPRE.cpp
@@ -568,6 +568,7 @@ namespace {
// This transformation requires dominator postdominator info
virtual void getAnalysisUsage(AnalysisUsage &AU) const {
AU.setPreservesCFG();
+ AU.addRequiredID(BreakCriticalEdgesID);
AU.addRequired<UnifyFunctionExitNodes>();
AU.addRequired<DominatorTree>();
}
@@ -1761,12 +1762,6 @@ bool GVNPRE::runOnFunction(Function &F) {
// This phase calculates the AVAIL_OUT and ANTIC_IN sets
buildsets(F);
- for (Function::iterator FI = F.begin(), FE = F.end(); FI != FE; ++FI) {
- DOUT << "ANTIC_IN: " << FI->getName() << "\n";
- dump(anticipatedIn[FI]);
- DOUT << "\n\n";
- }
-
// Phase 2: Insert
// This phase inserts values to make partially redundant values
// fully redundant