[llvm] AMDGPU/PromoteAlloca: Refactor into analysis / commit phases (PR #170512)

via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 9 20:03:23 PST 2025


Nicolai =?utf-8?q?Hähnle?= <nicolai.haehnle at amd.com>,
Nicolai =?utf-8?q?Hähnle?= <nicolai.haehnle at amd.com>,
Nicolai =?utf-8?q?Hähnle?= <nicolai.haehnle at amd.com>,
Nicolai =?utf-8?q?Hähnle?= <nicolai.haehnle at amd.com>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/170512 at github.com>


================
@@ -320,42 +379,63 @@ bool AMDGPUPromoteAllocaImpl::run(Function &F, bool PromoteToLDS) {
                                   : (MaxVGPRs * 32)) /
       VGPRBudgetRatio;
 
-  SmallVector<AllocaInst *, 16> Allocas;
+  std::vector<AllocaAnalysis> Allocas;
----------------
ruiling wrote:

Any reason to prefer `std::vector` here?

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


More information about the llvm-commits mailing list