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:
André Bargull 2022-04-05 14:08:56 +00:00
Родитель 35c6b0c14a
Коммит 74176c41e8
1 изменённых файлов: 0 добавлений и 7 удалений

Просмотреть файл

@ -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;
} }