[PATCH] D134254: [InstrProfiling] Emit runtime hook only once
Gulfem Savrun Yeniceri via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 20 10:01:00 PDT 2022
This revision was automatically updated to reflect the committed changes.
Closed by commit rGf039a9fa3248: [InstrProfiling] Emit runtime hook only once (authored by gulfem).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D134254/new/
https://reviews.llvm.org/D134254
Files:
llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp
Index: llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp
===================================================================
--- llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp
+++ llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp
@@ -567,11 +567,11 @@
emitVNodes();
emitNameData();
- // Emit runtime hook except for the cases where coverage is enabled on
- // code that is eliminated by the front-end, e.g. unused functions with
- // internal linkage, and the target does not require pulling in profile
- // runtime.
- if (containsProfilingIntrinsics(M) || !CoverageNamesVar || NeedsRuntimeHook)
+ // Emit runtime hook for the cases where the target does not unconditionally
+ // require pulling in profile runtime, and coverage is enabled on code that is
+ // not eliminated by the front-end, e.g. unused functions with internal
+ // linkage.
+ if (!NeedsRuntimeHook && containsProfilingIntrinsics(M))
emitRuntimeHook();
emitRegistration();
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D134254.461604.patch
Type: text/x-patch
Size: 988 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220920/d9f25d88/attachment.bin>
More information about the llvm-commits
mailing list