[llvm-branch-commits] [llvm] [AMDGPU][Scheduler] Prepare remat stage for rematerializer integration (NFC) (PR #189489)
Quentin Colombet via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Fri Apr 3 14:06:10 PDT 2026
================
@@ -1529,15 +1527,26 @@ bool PreRARematStage::initGCNSchedStage() {
PrintTargetRegions();
});
+ // Collect all rematerializable registers in the function, then create a
+ // corresponding scored rematerialization candidate for each one.
if (!collectRematRegs(MIRegion)) {
REMAT_DEBUG(dbgs() << "No rematerializable registers\n");
return false;
}
const ScoredRemat::FreqInfo FreqInfo(MF, DAG);
+ SmallVector<ScoredRemat, 8> Candidates(RematRegs.size());
+ SmallVector<unsigned> CandidateOrder, NewCandidateOrder;
----------------
qcolombet wrote:
Do we need to declare `NewCandidateOrder` that early?
https://github.com/llvm/llvm-project/pull/189489
More information about the llvm-branch-commits
mailing list