[llvm] Limit Alloca->LDS promotion based on speculations as to eventual register pressure (PR #152814)
Patrick Simmons via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 11 12:54:45 PDT 2025
================
@@ -100,6 +106,14 @@ class AMDGPUPromoteAllocaImpl {
unsigned VGPRBudgetRatio;
unsigned MaxVectorRegs;
+ std::unordered_map<BasicBlock *, std::unordered_set<Instruction *>>
----------------
linuxrocks123 wrote:
That may perform slightly better, but it would be harder to read. Perhaps it would be possible to encapsulate this algorithm into a set data structure somehow.
https://github.com/llvm/llvm-project/pull/152814
More information about the llvm-commits
mailing list