[llvm-commits] CVS: llvm/lib/Transforms/Scalar/CorrelatedExprs.cpp

Christopher Lattner lattner at cs.uiuc.edu
Sun Sep 8 13:56:00 PDT 2002


Changes in directory llvm/lib/Transforms/Scalar:

CorrelatedExprs.cpp updated: 1.1 -> 1.2

---
Log message:

Minor simplification


---
Diffs of the changes:

Index: llvm/lib/Transforms/Scalar/CorrelatedExprs.cpp
diff -u llvm/lib/Transforms/Scalar/CorrelatedExprs.cpp:1.1 llvm/lib/Transforms/Scalar/CorrelatedExprs.cpp:1.2
--- llvm/lib/Transforms/Scalar/CorrelatedExprs.cpp:1.1	Fri Sep  6 13:41:55 2002
+++ llvm/lib/Transforms/Scalar/CorrelatedExprs.cpp	Sun Sep  8 13:55:04 2002
@@ -212,11 +212,6 @@
     // information.
     virtual void print(std::ostream &O, const Module *M) const;
 
-    virtual void releaseMemory() {
-      RegionInfoMap.clear();
-      RankMap.clear();
-    }
-
   private:
     RegionInfo &getRegionInfo(BasicBlock *BB) {
       std::map<BasicBlock*, RegionInfo>::iterator I
@@ -272,7 +267,11 @@
   DT = &getAnalysis<DominatorTree>();
   
   std::set<BasicBlock*> VisitedBlocks;
-  return TransformRegion(&F.getEntryNode(), VisitedBlocks);
+  bool Changed = TransformRegion(&F.getEntryNode(), VisitedBlocks);
+
+  RegionInfoMap.clear();
+  RankMap.clear();
+  return Changed;
 }
 
 // TransformRegion - Transform the region starting with BB according to the





More information about the llvm-commits mailing list