[llvm] [RegScavenger] Simplify state tracking for backwards scavenging (PR #71202)

Jay Foad via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 3 10:07:51 PDT 2023


================
@@ -1515,11 +1515,6 @@ void PEI::replaceFrameIndicesBackward(MachineBasicBlock *BB,
         break;
     }
 
-    // Refresh the scavenger's internal iterator in case MI was removed or more
----------------
jayfoad wrote:

Nice cleanup here. `LocalRS->MBBI` now points after `MI`, to an instruction which will not have been affected by the call to `TRI.eliminateFrameIndex`, so there is no need to refresh anything.

https://github.com/llvm/llvm-project/pull/71202


More information about the llvm-commits mailing list