[llvm] [AMDGPU][NewPass] Attempt to promote uniform ptr arguments to inreg (PR #210410)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 8 13:51:30 PDT 2026


================
@@ -150,7 +128,7 @@ static bool promoteUniformArgsToInReg(Module &M) {
 
 PreservedAnalyses AMDGPUPromoteUniformArgsPass::run(Module &M,
                                                     ModuleAnalysisManager &AM) {
-  if (!EnablePromoteUniformArgs || !Triple(M.getTargetTriple()).isAMDGCN())
+  if (!M.getTargetTriple().isAMDGCN())
----------------
arsenm wrote:

avoid running for !amdgcn in the first place 

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


More information about the llvm-commits mailing list