[SandboxVec][DAG] Fix trim schedule

Fix trimSchedule by skipping instructions without a DAG Node.
This commit is contained in:
Vasileios Porpodas
2025-01-25 08:28:51 -08:00
parent 8b62114727
commit b178c2d63e

View File

@@ -172,6 +172,8 @@ void Scheduler::trimSchedule(ArrayRef<Instruction *> Instrs) {
for (auto *I = LowestI, *E = TopI->getPrevNode(); I != E;
I = I->getPrevNode()) {
auto *N = DAG.getNode(I);
if (N == nullptr)
continue;
if (auto *SB = N->getSchedBundle())
eraseBundle(SB);
}