зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1763099 - Part 5: Remove unused eliminateList vector. r=jandem
Depends on D142925 Differential Revision: https://phabricator.services.mozilla.com/D142926
This commit is contained in:
Родитель
35c6b0c14a
Коммит
74176c41e8
|
@ -3374,8 +3374,6 @@ bool jit::EliminateRedundantChecks(MIRGraph& graph) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
MDefinitionVector eliminateList(graph.alloc());
|
|
||||||
|
|
||||||
// Starting from each self-dominating block, traverse the CFG in pre-order.
|
// Starting from each self-dominating block, traverse the CFG in pre-order.
|
||||||
while (!worklist.empty()) {
|
while (!worklist.empty()) {
|
||||||
MBasicBlock* block = worklist.popCopy();
|
MBasicBlock* block = worklist.popCopy();
|
||||||
|
@ -3408,11 +3406,6 @@ bool jit::EliminateRedundantChecks(MIRGraph& graph) {
|
||||||
|
|
||||||
MOZ_ASSERT(index == graph.numBlocks());
|
MOZ_ASSERT(index == graph.numBlocks());
|
||||||
|
|
||||||
for (size_t i = 0; i < eliminateList.length(); i++) {
|
|
||||||
MDefinition* def = eliminateList[i];
|
|
||||||
def->block()->discardDef(def);
|
|
||||||
}
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче