mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-07-24 08:29:39 +00:00
Remove some more unused code that I missed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126826 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
56e3793acf
commit
3ccfbc2012
@ -71,10 +71,6 @@ namespace {
|
|||||||
/// update it.
|
/// update it.
|
||||||
BasicBlock::iterator CurInstIterator;
|
BasicBlock::iterator CurInstIterator;
|
||||||
|
|
||||||
/// BackEdges - Keep a set of all the loop back edges.
|
|
||||||
///
|
|
||||||
SmallSet<std::pair<const BasicBlock*, const BasicBlock*>, 8> BackEdges;
|
|
||||||
|
|
||||||
// Keeps track of non-local addresses that have been sunk into a block. This
|
// Keeps track of non-local addresses that have been sunk into a block. This
|
||||||
// allows us to avoid inserting duplicate code for blocks with multiple
|
// allows us to avoid inserting duplicate code for blocks with multiple
|
||||||
// load/stores of the same address.
|
// load/stores of the same address.
|
||||||
@ -93,10 +89,6 @@ namespace {
|
|||||||
AU.addPreserved<ProfileInfo>();
|
AU.addPreserved<ProfileInfo>();
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void releaseMemory() {
|
|
||||||
BackEdges.clear();
|
|
||||||
}
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
bool EliminateMostlyEmptyBlocks(Function &F);
|
bool EliminateMostlyEmptyBlocks(Function &F);
|
||||||
bool CanMergeBlocks(const BasicBlock *BB, const BasicBlock *DestBB) const;
|
bool CanMergeBlocks(const BasicBlock *BB, const BasicBlock *DestBB) const;
|
||||||
@ -108,7 +100,6 @@ namespace {
|
|||||||
bool OptimizeCallInst(CallInst *CI);
|
bool OptimizeCallInst(CallInst *CI);
|
||||||
bool MoveExtToFormExtLoad(Instruction *I);
|
bool MoveExtToFormExtLoad(Instruction *I);
|
||||||
bool OptimizeExtUses(Instruction *I);
|
bool OptimizeExtUses(Instruction *I);
|
||||||
void findLoopBackEdges(const Function &F);
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -120,16 +111,6 @@ FunctionPass *llvm::createCodeGenPreparePass(const TargetLowering *TLI) {
|
|||||||
return new CodeGenPrepare(TLI);
|
return new CodeGenPrepare(TLI);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// findLoopBackEdges - Do a DFS walk to find loop back edges.
|
|
||||||
///
|
|
||||||
void CodeGenPrepare::findLoopBackEdges(const Function &F) {
|
|
||||||
SmallVector<std::pair<const BasicBlock*,const BasicBlock*>, 32> Edges;
|
|
||||||
FindFunctionBackedges(F, Edges);
|
|
||||||
|
|
||||||
BackEdges.insert(Edges.begin(), Edges.end());
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
bool CodeGenPrepare::runOnFunction(Function &F) {
|
bool CodeGenPrepare::runOnFunction(Function &F) {
|
||||||
bool EverMadeChange = false;
|
bool EverMadeChange = false;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user