diff options
author | Arthur Eubanks <aeubanks@google.com> | 2021-02-26 20:06:49 -0800 |
---|---|---|
committer | Arthur Eubanks <aeubanks@google.com> | 2021-03-01 10:08:10 -0800 |
commit | 040c1b49d7a7eaa23d883ca363744944f5597d92 (patch) | |
tree | 5b30c2c5f605621cd62c30d8e7442e15aeb64e52 /llvm/lib/CodeGen/TargetPassConfig.cpp | |
parent | dcfec279d607c41095f0f2d6469d6e4b2e618269 (diff) | |
download | llvm-040c1b49d7a7eaa23d883ca363744944f5597d92.zip llvm-040c1b49d7a7eaa23d883ca363744944f5597d92.tar.gz llvm-040c1b49d7a7eaa23d883ca363744944f5597d92.tar.bz2 |
Move EntryExitInstrumentation pass location
This seems to be more of a Clang thing rather than a generic LLVM thing,
so this moves it out of LLVM pipelines and as Clang extension hooks into
LLVM pipelines.
Move the post-inline EEInstrumentation out of the backend pipeline and
into a late pass, similar to other sanitizer passes. It doesn't fit
into the codegen pipeline.
Also fix up EntryExitInstrumentation not running at -O0 under the new
PM. PR49143
Reviewed By: hans
Differential Revision: https://reviews.llvm.org/D97608
Diffstat (limited to 'llvm/lib/CodeGen/TargetPassConfig.cpp')
-rw-r--r-- | llvm/lib/CodeGen/TargetPassConfig.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/TargetPassConfig.cpp b/llvm/lib/CodeGen/TargetPassConfig.cpp index 7b528a8..6e80235 100644 --- a/llvm/lib/CodeGen/TargetPassConfig.cpp +++ b/llvm/lib/CodeGen/TargetPassConfig.cpp @@ -864,9 +864,6 @@ void TargetPassConfig::addIRPasses() { if (getOptLevel() != CodeGenOpt::None && !DisablePartialLibcallInlining) addPass(createPartiallyInlineLibCallsPass()); - // Instrument function entry and exit, e.g. with calls to mcount(). - addPass(createPostInlineEntryExitInstrumenterPass()); - // Add scalarization of target's unsupported masked memory intrinsics pass. // the unsupported intrinsic will be replaced with a chain of basic blocks, // that stores/loads element one-by-one if the appropriate mask bit is set. |