[llvm] [llvm][CodeGen] Fix the issue caused by live interval checking in window scheduler (PR #123184)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 21 04:30:27 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);
----------------
arsenm wrote:
You shouldn't need a full reanalyze anywhere.
At the exact point the instruction is deleted, the analysis should be updated. Is the scheduler really using the branch APIs? I don't think anywhere else with active LiveIntervals is using removeBranch and co.
https://github.com/llvm/llvm-project/pull/123184
More information about the llvm-commits
mailing list