[llvm] [SLSR] Skipping rewriting based on liveness (PR #218470)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 2 04:25:39 PDT 2026
================
@@ -309,6 +309,17 @@ unsigned GCNTTIImpl::getNumberOfRegisters(unsigned RCID) const {
return 4;
}
+std::optional<unsigned> GCNTTIImpl::getRegisterBudget(const Function &F) const {
+ // Report the VGPR budget implied by the occupancy F is compiled for. Callers
+ // comparing a single lumped pressure number against this should be
+ // conservative on the SGPR side, which is intentional.
+ // Leave the allocator some slack.
+ constexpr unsigned SafeMargin = 8;
----------------
arsenm wrote:
I don't understand this margin
https://github.com/llvm/llvm-project/pull/218470
More information about the llvm-commits
mailing list