From: Chris Lattner Date: Wed, 23 Oct 2002 03:30:47 +0000 (+0000) Subject: Tell PassManager that this pass does not invalidate the CFG so that dominator X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=a0877726df7b62bea4cf81625cae6c34345efdc7;p=oota-llvm.git Tell PassManager that this pass does not invalidate the CFG so that dominator information and Loop info will not have to be recomputed after this runs. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4269 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/InstrSched/InstrScheduling.cpp b/lib/CodeGen/InstrSched/InstrScheduling.cpp index a985680da3d..9818b708381 100644 --- a/lib/CodeGen/InstrSched/InstrScheduling.cpp +++ b/lib/CodeGen/InstrSched/InstrScheduling.cpp @@ -1499,6 +1499,7 @@ namespace { // getAnalysisUsage - We use LiveVarInfo... virtual void getAnalysisUsage(AnalysisUsage &AU) const { AU.addRequired(); + AU.setPreservesCFG(); } bool runOnFunction(Function &F); diff --git a/lib/CodeGen/InstrSelection/InstrSelection.cpp b/lib/CodeGen/InstrSelection/InstrSelection.cpp index 28bfb74666d..a9d1331c94c 100644 --- a/lib/CodeGen/InstrSelection/InstrSelection.cpp +++ b/lib/CodeGen/InstrSelection/InstrSelection.cpp @@ -63,6 +63,10 @@ namespace { int ruleForNode, short* nts); public: InstructionSelection(TargetMachine &T) : Target(T) {} + + virtual void getAnalysisUsage(AnalysisUsage &AU) const { + AU.setPreservesCFG(); + } bool runOnFunction(Function &F); }; diff --git a/lib/Target/SparcV9/InstrSched/InstrScheduling.cpp b/lib/Target/SparcV9/InstrSched/InstrScheduling.cpp index a985680da3d..9818b708381 100644 --- a/lib/Target/SparcV9/InstrSched/InstrScheduling.cpp +++ b/lib/Target/SparcV9/InstrSched/InstrScheduling.cpp @@ -1499,6 +1499,7 @@ namespace { // getAnalysisUsage - We use LiveVarInfo... virtual void getAnalysisUsage(AnalysisUsage &AU) const { AU.addRequired(); + AU.setPreservesCFG(); } bool runOnFunction(Function &F); diff --git a/lib/Target/SparcV9/InstrSelection/InstrSelection.cpp b/lib/Target/SparcV9/InstrSelection/InstrSelection.cpp index 28bfb74666d..a9d1331c94c 100644 --- a/lib/Target/SparcV9/InstrSelection/InstrSelection.cpp +++ b/lib/Target/SparcV9/InstrSelection/InstrSelection.cpp @@ -63,6 +63,10 @@ namespace { int ruleForNode, short* nts); public: InstructionSelection(TargetMachine &T) : Target(T) {} + + virtual void getAnalysisUsage(AnalysisUsage &AU) const { + AU.setPreservesCFG(); + } bool runOnFunction(Function &F); };