aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/ModuloSchedule.cpp
diff options
context:
space:
mode:
authorHua Tian <akiratian@tencent.com>2025-01-23 09:39:03 +0800
committerGitHub <noreply@github.com>2025-01-23 09:39:03 +0800
commita9d2834508e276d0a3cc09ac549132b56796e87f (patch)
tree403018a96590685667c2349da56fafe3078d5a24 /llvm/lib/CodeGen/ModuloSchedule.cpp
parenteaaac050588ec67afcdbb347df5597458a9b10d1 (diff)
downloadllvm-a9d2834508e276d0a3cc09ac549132b56796e87f.zip
llvm-a9d2834508e276d0a3cc09ac549132b56796e87f.tar.gz
llvm-a9d2834508e276d0a3cc09ac549132b56796e87f.tar.bz2
[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
Diffstat (limited to 'llvm/lib/CodeGen/ModuloSchedule.cpp')
-rw-r--r--llvm/lib/CodeGen/ModuloSchedule.cpp2
1 files changed, 1 insertions, 1 deletions
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();