[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 19:47:02 PST 2025
================
@@ -271,7 +271,7 @@ void WindowScheduler::backupMBB() {
// Remove MIs and the corresponding live intervals.
for (auto &MI : make_early_inc_range(*MBB)) {
Context->LIS->RemoveMachineInstrFromMaps(MI);
- MBB->remove(&MI);
+ MI.removeFromParent();
----------------
arsenm wrote:
Why doesn't this just eraseFromParent? Anyway MBB->remove to removeFromParent is a separate NFC change?
https://github.com/llvm/llvm-project/pull/123184
More information about the llvm-commits
mailing list