[llvm] Reland "[LTO] Run Argument Promotion before IPSCCP" (PR #111853)

Hari Limaye via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 5 03:37:02 PST 2024


================
@@ -1840,9 +1849,12 @@ PassBuilder::buildLTODefaultPipeline(OptimizationLevel Level,
     MPM.addPass(CalledValuePropagationPass());
   }
 
-  // Now deduce any function attributes based in the current code.
-  MPM.addPass(
-      createModuleToPostOrderCGSCCPassAdaptor(PostOrderFunctionAttrsPass()));
+  // For higher optimization levels this Pass has just run, so don't repeat it.
----------------
hazzlim wrote:

Ah ok - I have updated to remove running `PostOrderFunctionAttrsPass()` here at `-O1`.

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


More information about the llvm-commits mailing list