Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Makefile.pre.in
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ GITBRANCH= @GITBRANCH@
PGO_PROF_GEN_FLAG=@PGO_PROF_GEN_FLAG@
PGO_PROF_USE_FLAG=@PGO_PROF_USE_FLAG@
LLVM_PROF_MERGER=@LLVM_PROF_MERGER@
LLVM_PROF_SHOW=@LLVM_PROF_SHOW@
LLVM_PROF_FILE=@LLVM_PROF_FILE@
LLVM_PROF_ERR=@LLVM_PROF_ERR@
DTRACE= @DTRACE@
Expand Down Expand Up @@ -849,6 +850,7 @@ profile-run-stamp:
@ # FIXME: can't run for a cross build
$(LLVM_PROF_FILE) $(RUNSHARED) ./$(BUILDPYTHON) $(PROFILE_TASK)
$(LLVM_PROF_MERGER)
$(LLVM_PROF_SHOW)
# Remove profile generation binary since we are done with it.
$(MAKE) clean-retain-profile
# This is an expensive target to build and it does not have proper
Expand Down
4 changes: 4 additions & 0 deletions configure

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -2099,6 +2099,7 @@ fi
AC_SUBST([PGO_PROF_GEN_FLAG])
AC_SUBST([PGO_PROF_USE_FLAG])
AC_SUBST([LLVM_PROF_MERGER])
AC_SUBST([LLVM_PROF_SHOW])
AC_SUBST([LLVM_PROF_FILE])
AC_SUBST([LLVM_PROF_ERR])
AC_SUBST([LLVM_PROFDATA])
Expand All @@ -2123,6 +2124,7 @@ then
fi
fi
LLVM_PROF_ERR=no
LLVM_PROF_SHOW=true
Comment thread
picnixz marked this conversation as resolved.

case "$ac_cv_cc_name" in
clang|icx)
Expand All @@ -2135,6 +2137,10 @@ case "$ac_cv_cc_name" in
\"\$(shell pwd)\"/*.profclangr
")
LLVM_PROF_FILE="LLVM_PROFILE_FILE=\"\$(shell pwd)/code-%p.profclangr\""
LLVM_PROF_SHOW=m4_normalize("
${LLVM_PROFDATA} show --detailed-summary --topn=500
\"\$(shell pwd)/code.profclangd\"
")
if test $LLVM_PROF_FOUND = not-found
then
LLVM_PROF_ERR=yes
Expand Down
Loading