diff options
author | Chris Lattner <sabre@nondot.org> | 2002-09-08 18:55:04 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-09-08 18:55:04 +0000 |
commit | bd78696719a77c0ab4876901f2fa4dcbed234e46 (patch) | |
tree | ce9bf768baf07e66ea9ea42e9a1999728899d737 /lib | |
parent | de69a4ca2fd66cc600116a10bef1f3ab1610d62c (diff) |
Minor simplification
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3619 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Transforms/Scalar/CorrelatedExprs.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/lib/Transforms/Scalar/CorrelatedExprs.cpp b/lib/Transforms/Scalar/CorrelatedExprs.cpp index 9ac8a4a893..6d26ffd861 100644 --- a/lib/Transforms/Scalar/CorrelatedExprs.cpp +++ b/lib/Transforms/Scalar/CorrelatedExprs.cpp @@ -212,11 +212,6 @@ namespace { // 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 @@ bool CEE::runOnFunction(Function &F) { 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 |