mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-16 16:37:42 +00:00
Minor simplification
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3619 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
de69a4ca2f
commit
bd78696719
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user