[PATCH] D24004: [ThinLTO] Indirect call promotion fixes for promoted local functions

Teresa Johnson via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 29 14:21:44 PDT 2016


tejohnson added inline comments.

================
Comment at: lib/Transforms/IPO/PassManagerBuilder.cpp:412
@@ +411,3 @@
+  // are removed.
+  if (PerformThinLTO)
+    MPM.add(createPGOIndirectCallPromotionLegacyPass(/*InLTO = */ true));
----------------
davidxl wrote:
> Is there PGOInstr/Annotation pass before this?
In the compile step. PerformThinLTO is true when we are in the ThinLTO backends. See also further down where we guard the invocation of addPGOInstrPasses with !PerformThinLTO.


https://reviews.llvm.org/D24004





More information about the llvm-commits mailing list