aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Analysis/ModuleSummaryAnalysis.cpp
diff options
context:
space:
mode:
authorHongtao Yu <hoy@fb.com>2021-09-17 09:21:39 -0700
committerHongtao Yu <hoy@fb.com>2021-09-17 12:28:09 -0700
commitc5fafc1e73bcdbb8eaf899d13c5566f37f9580ac (patch)
tree8fcaa98f10c4265294c605caee22f741a155fc44 /llvm/lib/Analysis/ModuleSummaryAnalysis.cpp
parent80d62993d0720bc36523e39e64cc36da6e445e64 (diff)
downloadllvm-c5fafc1e73bcdbb8eaf899d13c5566f37f9580ac.zip
llvm-c5fafc1e73bcdbb8eaf899d13c5566f37f9580ac.tar.gz
llvm-c5fafc1e73bcdbb8eaf899d13c5566f37f9580ac.tar.bz2
[CSSPGO] Tweakes to lower pseudo probe runtime overhead
A couple tweaks to 1. allow more thinlto importing by excluding probe intrinsics from IR size in module summary 2. Allow general default attributes (nofree nosync nounwind) for pseudo probe intrinsic. Without those attributes, pseudo probes will be basically treated as unknown calls which will in turn block their containing functions from annotated with those attributes. Reviewed By: wenlei Differential Revision: https://reviews.llvm.org/D109976
Diffstat (limited to 'llvm/lib/Analysis/ModuleSummaryAnalysis.cpp')
-rw-r--r--llvm/lib/Analysis/ModuleSummaryAnalysis.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/ModuleSummaryAnalysis.cpp b/llvm/lib/Analysis/ModuleSummaryAnalysis.cpp
index a85dd75..6a5320e 100644
--- a/llvm/lib/Analysis/ModuleSummaryAnalysis.cpp
+++ b/llvm/lib/Analysis/ModuleSummaryAnalysis.cpp
@@ -279,7 +279,7 @@ static void computeFunctionSummary(
}
for (const Instruction &I : BB) {
- if (isa<DbgInfoIntrinsic>(I))
+ if (I.isDebugOrPseudoInst())
continue;
++NumInsts;
// Regular LTO module doesn't participate in ThinLTO import,