From a9d2834508e276d0a3cc09ac549132b56796e87f Mon Sep 17 00:00:00 2001 From: Hua Tian Date: Thu, 23 Jan 2025 09:39:03 +0800 Subject: [llvm][CodeGen] Fix the issue caused by live interval checking in window scheduler (#123184) At some corner cases, the cloned MI still retains an old slot index, which leads to the compiler crashing. This patch update the slot index map before delete the recycled MI. https://github.com/llvm/llvm-project/issues/123165 --- llvm/lib/CodeGen/ModuloSchedule.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/CodeGen/ModuloSchedule.cpp') diff --git a/llvm/lib/CodeGen/ModuloSchedule.cpp b/llvm/lib/CodeGen/ModuloSchedule.cpp index 414c8cd..d99b6ac 100644 --- a/llvm/lib/CodeGen/ModuloSchedule.cpp +++ b/llvm/lib/CodeGen/ModuloSchedule.cpp @@ -899,7 +899,7 @@ void ModuloScheduleExpander::addBranches(MachineBasicBlock &PreheaderBB, LastEpi->eraseFromParent(); } if (LastPro == KernelBB) { - LoopInfo->disposed(); + LoopInfo->disposed(&LIS); NewKernel = nullptr; } LastPro->clear(); -- cgit v1.1