[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
Tue Jan 21 19:56:28 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();
----------------
huaatian wrote:
This MI is copied to OriMIs and will be used later during cloning and restoration. I will submit a new NFC later.
https://github.com/llvm/llvm-project/pull/123184
More information about the llvm-commits
mailing list