summaryrefslogtreecommitdiff
path: root/cc
diff options
context:
space:
mode:
author Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> 2025-03-05 22:07:14 -0800
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2025-03-05 22:07:14 -0800
commitf68b9cbba5b1f6d79992d8dba9e75c8b4d6965da (patch)
tree27b550605fcdfc186110ff70e96283e53ef60ec7 /cc
parente52331db53aee2966b5cea276c4796923996f6f4 (diff)
parenta3ced3fe6eede2787db3a67d296076c759b7c356 (diff)
Merge "Enable --salvage-unused-profile for AutoFDO" into main
Diffstat (limited to 'cc')
-rw-r--r--cc/afdo.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/cc/afdo.go b/cc/afdo.go
index 1233e332e..9be39185c 100644
--- a/cc/afdo.go
+++ b/cc/afdo.go
@@ -108,6 +108,8 @@ func (afdo *afdo) flags(ctx ModuleContext, flags Flags) Flags {
// Salvage stale profile by fuzzy matching and use the remapped location for sample profile query.
flags.Local.CFlags = append([]string{"-mllvm", "--salvage-stale-profile=true"}, flags.Local.CFlags...)
flags.Local.CFlags = append([]string{"-mllvm", "--salvage-stale-profile-max-callsites=2000"}, flags.Local.CFlags...)
+ // Salvage stale profile by fuzzy matching renamed functions.
+ flags.Local.CFlags = append([]string{"-mllvm", "--salvage-unused-profile=true"}, flags.Local.CFlags...)
flags.Local.LdFlags = append([]string{profileUseFlag, "-Wl,-mllvm,-no-warn-sample-unused=true"}, flags.Local.LdFlags...)
// Update CFlagsDeps and LdFlagsDeps so the module is rebuilt