Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(689)

Issue 8814043: Add indirect call value profiling support to GCC

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years ago by dehao
Modified:
11 years ago
Reviewers:
davidxl
Base URL:
svn+ssh://gcc.gnu.org/svn/gcc/branches/google/gcc-4_7/
Visibility:
Public.

Description

Add indirect call value profiling support to GCC

Patch Set 1 #

Total comments: 22

Patch Set 2 : Fix the comments + Early inline tuning for AutoFDO #

Total comments: 4

Patch Set 3 : Assert dead-path for AutoFDO in cgraphbuilder. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+226 lines, -58 lines) Patch
M gcc/Makefile.in View 1 chunk +1 line, -1 line 0 comments Download
M gcc/auto-profile.h View 1 1 chunk +4 lines, -1 line 0 comments Download
M gcc/auto-profile.c View 1 29 chunks +185 lines, -39 lines 0 comments Download
M gcc/cgraphbuild.c View 1 2 3 chunks +3 lines, -2 lines 0 comments Download
M gcc/coverage.h View 1 1 chunk +1 line, -1 line 0 comments Download
M gcc/ipa-inline.c View 1 1 chunk +2 lines, -0 lines 0 comments Download
M gcc/opts.c View 1 chunk +2 lines, -0 lines 0 comments Download
M gcc/tree-inline.c View 1 1 chunk +4 lines, -2 lines 0 comments Download
M gcc/value-prof.h View 1 chunk +2 lines, -0 lines 0 comments Download
M gcc/value-prof.c View 1 6 chunks +22 lines, -12 lines 0 comments Download

Messages

Total messages: 4
davidxl
https://codereview.appspot.com/8814043/diff/1/gcc/auto-profile.c File gcc/auto-profile.c (right): https://codereview.appspot.com/8814043/diff/1/gcc/auto-profile.c#newcode161 gcc/auto-profile.c:161: }; Why not sharing the same hist_type enum in ...
11 years ago (2013-04-17 17:18:37 UTC) #1
dehao
Hi, David, I've addressed all the comments, and also added an early-inline tuning to make ...
11 years ago (2013-04-17 20:56:17 UTC) #2
davidxl
https://codereview.appspot.com/8814043/diff/6001/gcc/auto-profile.c File gcc/auto-profile.c (right): https://codereview.appspot.com/8814043/diff/6001/gcc/auto-profile.c#newcode1797 gcc/auto-profile.c:1797: afdo_callsite_hot_enough_for_early_inline (struct cgraph_edge *edge) How does this heuristic alone ...
11 years ago (2013-04-17 21:53:56 UTC) #3
dehao
11 years ago (2013-04-17 22:24:43 UTC) #4
https://codereview.appspot.com/8814043/diff/6001/gcc/auto-profile.c
File gcc/auto-profile.c (right):

https://codereview.appspot.com/8814043/diff/6001/gcc/auto-profile.c#newcode1797
gcc/auto-profile.c:1797: afdo_callsite_hot_enough_for_early_inline (struct
cgraph_edge *edge)
On 2013/04/17 21:53:56, davidxl wrote:
> How does this heuristic alone affect performance (without looking at vpt)?

I'm still testing it to compare:

vpt+einline v.s. vpt
novpt+einline v.s. novpt

https://codereview.appspot.com/8814043/diff/6001/gcc/cgraphbuild.c
File gcc/cgraphbuild.c (right):

https://codereview.appspot.com/8814043/diff/6001/gcc/cgraphbuild.c#newcode306
gcc/cgraphbuild.c:306: direct_call1 = find_func_by_global_id (val1,
flag_auto_profile);
On 2013/04/17 21:53:56, davidxl wrote:
> Should it be just 'false'?

Done.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b