summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Scalar/GVNPRE.cpp
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
commit3c3dd902ec1d7c525a143e29b2e0d200260f05fd (patch)
tree6e504e408f3ed843596f754667e82e052de33ef2 /llvm/lib/Transforms/Scalar/GVNPRE.cpp
parentbcdd7ec4c9dd24d84a331f34e1cb7caf298379fe (diff)
downloadbcm5719-llvm-3c3dd902ec1d7c525a143e29b2e0d200260f05fd.tar.gz
bcm5719-llvm-3c3dd902ec1d7c525a143e29b2e0d200260f05fd.zip
Achieve what the incorrect test was trying to do by simply requiring that all
critical edges be split before we begin. llvm-svn: 37949
Diffstat (limited to 'llvm/lib/Transforms/Scalar/GVNPRE.cpp')
-rw-r--r--llvm/lib/Transforms/Scalar/GVNPRE.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/llvm/lib/Transforms/Scalar/GVNPRE.cpp b/llvm/lib/Transforms/Scalar/GVNPRE.cpp
index 5fe4f0a3eeb..bedfb5d2707 100644
--- a/llvm/lib/Transforms/Scalar/GVNPRE.cpp
+++ b/llvm/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
OpenPOWER on IntegriCloud