[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));
> 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.
More information about the llvm-commits