forked from OSchip/llvm-project
parent
4f986cebfd
commit
bdb147c373
|
@ -212,11 +212,6 @@ namespace {
|
||||||
// information.
|
// information.
|
||||||
virtual void print(std::ostream &O, const Module *M) const;
|
virtual void print(std::ostream &O, const Module *M) const;
|
||||||
|
|
||||||
virtual void releaseMemory() {
|
|
||||||
RegionInfoMap.clear();
|
|
||||||
RankMap.clear();
|
|
||||||
}
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
RegionInfo &getRegionInfo(BasicBlock *BB) {
|
RegionInfo &getRegionInfo(BasicBlock *BB) {
|
||||||
std::map<BasicBlock*, RegionInfo>::iterator I
|
std::map<BasicBlock*, RegionInfo>::iterator I
|
||||||
|
@ -272,7 +267,11 @@ bool CEE::runOnFunction(Function &F) {
|
||||||
DT = &getAnalysis<DominatorTree>();
|
DT = &getAnalysis<DominatorTree>();
|
||||||
|
|
||||||
std::set<BasicBlock*> VisitedBlocks;
|
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
|
// TransformRegion - Transform the region starting with BB according to the
|
||||||
|
|
Loading…
Reference in New Issue