[llvm] [AMDGPU] Move InferAddressSpacesPass to middle end optimization pipeline (PR #138604)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Thu May 22 11:28:05 PDT 2025
================
@@ -908,6 +924,12 @@ void AMDGPUTargetMachine::registerPassBuilderCallbacks(PassBuilder &PB) {
if (EnableLowerModuleLDS)
PM.addPass(AMDGPULowerModuleLDSPass(*this));
if (Level != OptimizationLevel::O0) {
+ // We only want to run this with O2 or higher since inliner and SROA
+ // don't run in O1.
----------------
arsenm wrote:
This seems surprising
https://github.com/llvm/llvm-project/pull/138604
More information about the llvm-commits
mailing list