[llvm] [AMDGPU][Scheduler] Scoring system for rematerialization candidates (PR #153092)

Lucas Ramirez via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 9 13:38:13 PDT 2025


================
@@ -2040,6 +2257,13 @@ void GCNScheduleDAGMILive::updateRegionBoundaries(
     RegionBounds.first = NewMI; // Insertion
 }
 
+void GCNScheduleDAGMILive::deleteMI(unsigned RegionIdx, MachineInstr *MI) {
+  updateRegionBoundaries(Regions[RegionIdx], MI, nullptr);
----------------
lucas-rami wrote:

Added `test_rollback_remats_emptydefregion_barrier` (renamed the existing test to `test_rollback_remats_emptydefregion_block`). It seems to be working fine (and I checked the logs to makes sure it is actually rematerializing and then rolling back remats). Let me know if there is still a concern.

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


More information about the llvm-commits mailing list