[llvm] [AMDGPU] Run LowerLDS at the end of the fullLTO pipeline (PR #75333)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 12 00:16:24 PST 2024


================
@@ -1088,6 +1096,15 @@ class AMDGPULowerModuleLDS {
   }
 
   bool runOnModule(Module &M) {
+    // This pass may run twice in a full LTO pipeline.
+    //
+    // If we ran it early, we'll have added metadata to skip next runs.
+    if (M.getModuleFlag("amdgcn.lowered_module_lds"))
----------------
arsenm wrote:

Rather than communicating this with the flag, better to just not add it in the pipeline configuration?

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


More information about the llvm-commits mailing list