================ @@ -821,8 +825,15 @@ void AMDGPUTargetMachine::registerPassBuilderCallbacks(PassBuilder &PB) { PM.addPass(AMDGPUSwLowerLDSPass(*this)); if (EnableLowerModuleLDS) PM.addPass(AMDGPULowerModuleLDSPass(*this)); - if (EnableAMDGPUAttributor && Level != OptimizationLevel::O0) - PM.addPass(AMDGPUAttributorPass(*this)); + if (Level != OptimizationLevel::O0) { + if (EnableAMDGPUAttributor) + PM.addPass(AMDGPUAttributorPass(*this)); + // Do we really need internalization in LTO? + if (InternalizeSymbols) { ---------------- shiltian wrote:
I'm not sure. I can start a PSDB session to test it out whether it makes difference after removing it. https://github.com/llvm/llvm-project/pull/114547 _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits