diff options
author | Hua Tian <akiratian@tencent.com> | 2025-01-23 09:39:03 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-23 09:39:03 +0800 |
commit | a9d2834508e276d0a3cc09ac549132b56796e87f (patch) | |
tree | 403018a96590685667c2349da56fafe3078d5a24 /llvm/lib/CodeGen/ModuloSchedule.cpp | |
parent | eaaac050588ec67afcdbb347df5597458a9b10d1 (diff) | |
download | llvm-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.cpp | 2 |
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(); |