From 9f83512ce80279aa5ff243d4285283438360d015 Mon Sep 17 00:00:00 2001 From: Devang Patel Date: Thu, 20 Mar 2008 23:27:18 +0000 Subject: [PATCH] These passes preserve CFG. This patch fixes Benchmarks/Trimaran/enc-pc1/enc-pc1 failure reported by Grawp-PIC i386 nightly tester git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48623 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Analysis/IntervalPartition.cpp | 2 +- lib/Analysis/LoopInfo.cpp | 2 +- lib/Analysis/PostDominators.cpp | 4 ++-- lib/VMCore/Dominators.cpp | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/Analysis/IntervalPartition.cpp b/lib/Analysis/IntervalPartition.cpp index 68c5464085f..a430cffc358 100644 --- a/lib/Analysis/IntervalPartition.cpp +++ b/lib/Analysis/IntervalPartition.cpp @@ -17,7 +17,7 @@ using namespace llvm; char IntervalPartition::ID = 0; static RegisterPass -X("intervals", "Interval Partition Construction", false, true); +X("intervals", "Interval Partition Construction", true, true); //===----------------------------------------------------------------------===// // IntervalPartition Implementation diff --git a/lib/Analysis/LoopInfo.cpp b/lib/Analysis/LoopInfo.cpp index 1b04f0674a1..e067c1768fe 100644 --- a/lib/Analysis/LoopInfo.cpp +++ b/lib/Analysis/LoopInfo.cpp @@ -29,7 +29,7 @@ using namespace llvm; char LoopInfo::ID = 0; static RegisterPass -X("loops", "Natural Loop Construction", false, true); +X("loops", "Natural Loop Construction", true, true); //===----------------------------------------------------------------------===// // Loop implementation diff --git a/lib/Analysis/PostDominators.cpp b/lib/Analysis/PostDominators.cpp index ad8e0b17d47..8bfa0692b9a 100644 --- a/lib/Analysis/PostDominators.cpp +++ b/lib/Analysis/PostDominators.cpp @@ -26,7 +26,7 @@ using namespace llvm; char PostDominatorTree::ID = 0; char PostDominanceFrontier::ID = 0; static RegisterPass -F("postdomtree", "Post-Dominator Tree Construction", false, true); +F("postdomtree", "Post-Dominator Tree Construction", true, true); bool PostDominatorTree::runOnFunction(Function &F) { DT->recalculate(F); @@ -38,7 +38,7 @@ bool PostDominatorTree::runOnFunction(Function &F) { //===----------------------------------------------------------------------===// static RegisterPass -H("postdomfrontier", "Post-Dominance Frontier Construction", false, true); +H("postdomfrontier", "Post-Dominance Frontier Construction", true, true); const DominanceFrontier::DomSetType & PostDominanceFrontier::calculate(const PostDominatorTree &DT, diff --git a/lib/VMCore/Dominators.cpp b/lib/VMCore/Dominators.cpp index 1e88b486070..1b58707884c 100644 --- a/lib/VMCore/Dominators.cpp +++ b/lib/VMCore/Dominators.cpp @@ -54,7 +54,7 @@ TEMPLATE_INSTANTIATION(class DominatorTreeBase); char DominatorTree::ID = 0; static RegisterPass -E("domtree", "Dominator Tree Construction", false, true); +E("domtree", "Dominator Tree Construction", true, true); bool DominatorTree::runOnFunction(Function &F) { DT->recalculate(F);