[clang] [llvm] [EntryExitInstrumenter] Move passes out of clang into LLVM default pipelines (PR #92171)
Arthur Eubanks via cfe-commits
cfe-commits at lists.llvm.org
Tue May 28 12:57:07 PDT 2024
================
@@ -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
More information about the cfe-commits
mailing list