[llvm] [llvm][CodeGen] Fix the issue caused by live interval checking in window scheduler (PR #123184)
Hua Tian via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 17 04:44:22 PST 2025
================
@@ -303,6 +303,7 @@ void WindowScheduler::generateTripleMBB() {
if (Register AntiReg = getAntiRegister(MI))
DefPairs[MI->getOperand(0).getReg()] = AntiReg;
auto *NewMI = MF->CloneMachineInstr(MI);
+ Context->LIS->RemoveMachineInstrFromMaps(*NewMI);
----------------
huaatian wrote:
I find that the issue is caused by this line,which not remove the MI's slot index from the Map. But I am not sure if this should be fixed here, or intercepted later as I did before.
![image](https://github.com/user-attachments/assets/9b446355-502e-461d-b102-70813b1403ec)
![image](https://github.com/user-attachments/assets/194000c9-bf76-41aa-887e-9d6662fc9b94)
https://github.com/llvm/llvm-project/pull/123184
More information about the llvm-commits
mailing list