================
@@ -1030,6 +1036,12 @@ 
PassBuilder::buildModuleSimplificationPipeline(OptimizationLevel Level,
       Phase != ThinOrFullLTOPhase::ThinLTOPostLink)
     MPM.addPass(SampleProfileProbePass(TM));
 
+  // Instrument function entry and exit before all inlining.
+  if (!isLTOPostLink(Phase)) {
+    MPM.addPass(createModuleToFunctionPassAdaptor(
----------------
aeubanks wrote:

if you have a small local repro, you can pass `-Wl,-mllvm,-print-after-all` to 
the link command to have it print IR after every pass and see where the calls 
are getting added. or to see changes in the pre-link optimization pipeline, 
`-mllvm=-print-after-all` (or `-mllvm=-print-changed=quiet`, which doesn't work 
with the IR parts of the codegen pipeline for *reasons*)

https://github.com/llvm/llvm-project/pull/92171
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to