mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-05 13:26:55 +00:00
Before deleting a basic block, give other loop passes a chance cleanup analysis values, related to the instructions in the basic block.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@67719 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -152,6 +152,13 @@ void LPPassManager::cloneBasicBlockSimpleAnalysis(BasicBlock *From,
|
||||
|
||||
/// deleteSimpleAnalysisValue - Invoke deleteAnalysisValue hook for all passes.
|
||||
void LPPassManager::deleteSimpleAnalysisValue(Value *V, Loop *L) {
|
||||
if (BasicBlock *BB = dyn_cast<BasicBlock>(V)) {
|
||||
for (BasicBlock::iterator BI = BB->begin(), BE = BB->end(); BI != BE;
|
||||
++BI) {
|
||||
Instruction &I = *BI;
|
||||
deleteSimpleAnalysisValue(&I, L);
|
||||
}
|
||||
}
|
||||
for (unsigned Index = 0; Index < getNumContainedPasses(); ++Index) {
|
||||
Pass *P = getContainedPass(Index);
|
||||
LoopPass *LP = dynamic_cast<LoopPass *>(P);
|
||||
|
Reference in New Issue
Block a user