[llvm-commits] CVS: llvm/lib/Transforms/IPO/LoopExtractor.cpp

Devang Patel dpatel at apple.com
Thu Jun 7 15:17:45 PDT 2007



Changes in directory llvm/lib/Transforms/IPO:

LoopExtractor.cpp updated: 1.28 -> 1.29
---
Log message:

Do not use ETForest as well as DomiantorTree.  DominatorTree is sufficient.


---
Diffs of the changes:  (+3 -5)

 LoopExtractor.cpp |    8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)


Index: llvm/lib/Transforms/IPO/LoopExtractor.cpp
diff -u llvm/lib/Transforms/IPO/LoopExtractor.cpp:1.28 llvm/lib/Transforms/IPO/LoopExtractor.cpp:1.29
--- llvm/lib/Transforms/IPO/LoopExtractor.cpp:1.28	Sun May  6 08:37:16 2007
+++ llvm/lib/Transforms/IPO/LoopExtractor.cpp	Thu Jun  7 17:17:16 2007
@@ -45,7 +45,6 @@
     virtual void getAnalysisUsage(AnalysisUsage &AU) const {
       AU.addRequiredID(BreakCriticalEdgesID);
       AU.addRequiredID(LoopSimplifyID);
-      AU.addRequired<ETForest>();
       AU.addRequired<DominatorTree>();
       AU.addRequired<LoopInfo>();
     }
@@ -78,7 +77,6 @@
   if (LI.begin() == LI.end())
     return false;
 
-  ETForest &EF = getAnalysis<ETForest>();
   DominatorTree &DT = getAnalysis<DominatorTree>();
 
   // If there is more than one top-level loop in this function, extract all of
@@ -88,7 +86,7 @@
     for (LoopInfo::iterator i = LI.begin(), e = LI.end(); i != e; ++i) {
       if (NumLoops == 0) return Changed;
       --NumLoops;
-      Changed |= ExtractLoop(EF, DT, *i) != 0;
+      Changed |= ExtractLoop(DT, *i) != 0;
       ++NumExtracted;
     }
   } else {
@@ -118,7 +116,7 @@
     if (ShouldExtractLoop) {
       if (NumLoops == 0) return Changed;
       --NumLoops;
-      Changed |= ExtractLoop(EF, DT, TLL) != 0;
+      Changed |= ExtractLoop(DT, TLL) != 0;
       ++NumExtracted;
     } else {
       // Okay, this function is a minimal container around the specified loop.
@@ -128,7 +126,7 @@
       for (Loop::iterator i = TLL->begin(), e = TLL->end(); i != e; ++i) {
         if (NumLoops == 0) return Changed;
         --NumLoops;
-        Changed |= ExtractLoop(EF, DT, *i) != 0;
+        Changed |= ExtractLoop(DT, *i) != 0;
         ++NumExtracted;
       }
     }






More information about the llvm-commits mailing list