Tell PassManager that this pass does not invalidate the CFG so that dominator
authorChris Lattner <sabre@nondot.org>
Wed, 23 Oct 2002 03:30:47 +0000 (03:30 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 23 Oct 2002 03:30:47 +0000 (03:30 +0000)
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

lib/CodeGen/InstrSched/InstrScheduling.cpp
lib/CodeGen/InstrSelection/InstrSelection.cpp
lib/Target/SparcV9/InstrSched/InstrScheduling.cpp
lib/Target/SparcV9/InstrSelection/InstrSelection.cpp

index a985680da3dd1dbce04b0c12d8c3cc162380edc5..9818b708381c0da84f9daab7428bb57f5640f511 100644 (file)
@@ -1499,6 +1499,7 @@ namespace {
     // getAnalysisUsage - We use LiveVarInfo...
     virtual void getAnalysisUsage(AnalysisUsage &AU) const {
       AU.addRequired<FunctionLiveVarInfo>();
+      AU.setPreservesCFG();
     }
     
     bool runOnFunction(Function &F);
index 28bfb74666d87d96eba944b4787a53d481d0ae58..a9d1331c94c83e12129cc334a8fb06190430d484 100644 (file)
@@ -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);
   };
index a985680da3dd1dbce04b0c12d8c3cc162380edc5..9818b708381c0da84f9daab7428bb57f5640f511 100644 (file)
@@ -1499,6 +1499,7 @@ namespace {
     // getAnalysisUsage - We use LiveVarInfo...
     virtual void getAnalysisUsage(AnalysisUsage &AU) const {
       AU.addRequired<FunctionLiveVarInfo>();
+      AU.setPreservesCFG();
     }
     
     bool runOnFunction(Function &F);
index 28bfb74666d87d96eba944b4787a53d481d0ae58..a9d1331c94c83e12129cc334a8fb06190430d484 100644 (file)
@@ -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);
   };