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

Issue 6567079: Fine grained AutoFDO implementation

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

Description

Fine grained AutoFDO implementation

Patch Set 1 #

Patch Set 2 : Code cleanup #

Total comments: 56

Patch Set 3 : Integrate David's review #

Patch Set 4 : Integrate David's review #2 #

Patch Set 5 : More tuning + integrate David's review #3 #

Patch Set 6 : integrate workset support #

Total comments: 5

Patch Set 7 : bug fixing #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2196 lines, -23 lines) Patch
M gcc/ChangeLog.google-4_7 View 1 2 3 4 5 6 2 chunks +138 lines, -0 lines 0 comments Download
M gcc/Makefile.in View 1 2 3 4 5 6 3 chunks +6 lines, -0 lines 0 comments Download
A gcc/auto-profile.h View 1 2 3 4 5 6 1 chunk +47 lines, -0 lines 0 comments Download
A gcc/auto-profile.c View 1 2 3 4 5 6 1 chunk +1719 lines, -0 lines 0 comments Download
M gcc/basic-block.h View 1 2 3 4 5 6 3 chunks +9 lines, -3 lines 0 comments Download
M gcc/cfg.c View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M gcc/cgraph.c View 1 2 3 4 5 6 4 chunks +14 lines, -0 lines 0 comments Download
M gcc/cgraphbuild.c View 1 2 3 4 5 6 2 chunks +4 lines, -0 lines 0 comments Download
M gcc/cgraphunit.c View 1 2 3 4 5 6 2 chunks +8 lines, -0 lines 0 comments Download
M gcc/common.opt View 1 2 3 4 5 6 1 chunk +10 lines, -0 lines 0 comments Download
M gcc/coverage.c View 1 2 3 4 5 6 2 chunks +3 lines, -0 lines 0 comments Download
M gcc/debug.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M gcc/dwarf2out.c View 1 2 3 4 5 6 1 chunk +35 lines, -0 lines 0 comments Download
M gcc/gcov-io.h View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M gcc/ipa-inline.c View 1 2 3 4 5 6 6 chunks +46 lines, -4 lines 0 comments Download
M gcc/ipa-inline-transform.c View 1 2 3 4 5 6 4 chunks +38 lines, -0 lines 0 comments Download
M gcc/ira-int.h View 1 2 3 4 5 6 1 chunk +4 lines, -2 lines 0 comments Download
M gcc/loop-unroll.c View 1 2 3 4 5 6 1 chunk +7 lines, -0 lines 0 comments Download
M gcc/opts.c View 1 2 3 4 5 6 1 chunk +27 lines, -0 lines 0 comments Download
M gcc/passes.c View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M gcc/predict.c View 1 2 3 4 5 6 3 chunks +28 lines, -9 lines 0 comments Download
M gcc/profile.c View 1 2 3 4 5 6 2 chunks +7 lines, -1 line 0 comments Download
M gcc/regs.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M gcc/timevar.def View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M gcc/toplev.c View 1 2 3 4 5 6 3 chunks +8 lines, -0 lines 0 comments Download
M gcc/tree-cfg.c View 1 2 3 4 5 6 1 chunk +8 lines, -0 lines 0 comments Download
M gcc/tree-inline.c View 1 2 3 4 5 6 4 chunks +18 lines, -1 line 0 comments Download
M gcc/tree-pass.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M gcc/tree-profile.c View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M gcc/tree-ssa-live.c View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 12
davidxl
Have not finished reading. Here is the first batch of comments. David https://codereview.appspot.com/6567079/diff/2001/gcc/auto-profile.c File gcc/auto-profile.c ...
11 years, 6 months ago (2012-10-14 05:50:59 UTC) #1
davidxl
comment batch 2. https://codereview.appspot.com/6567079/diff/2001/gcc/auto-profile.c File gcc/auto-profile.c (right): https://codereview.appspot.com/6567079/diff/2001/gcc/auto-profile.c#newcode906 gcc/auto-profile.c:906: bool is_total) DOCUMENT TOTAL_COUNT, IS_TOTAL. https://codereview.appspot.com/6567079/diff/2001/gcc/ipa-inline.c ...
11 years, 6 months ago (2012-10-15 02:31:28 UTC) #2
dehao
Hi, David, I've integrated your review, and I'll update the gcc wiki to add more ...
11 years, 6 months ago (2012-10-15 21:21:35 UTC) #3
davidxl
in predict.c (this file is not loaded properly) - loop_optimizer_finalize (); + if (flag_auto_profile && ...
11 years, 6 months ago (2012-10-17 05:09:38 UTC) #4
davidxl
https://codereview.appspot.com/6567079/diff/2001/gcc/tree-inline.c File gcc/tree-inline.c (right): https://codereview.appspot.com/6567079/diff/2001/gcc/tree-inline.c#newcode1836 gcc/tree-inline.c:1836: } so it means if the same inline happens ...
11 years, 6 months ago (2012-10-17 06:14:26 UTC) #5
dehao
https://codereview.appspot.com/6567079/diff/2001/gcc/tree-inline.c File gcc/tree-inline.c (right): https://codereview.appspot.com/6567079/diff/2001/gcc/tree-inline.c#newcode1836 gcc/tree-inline.c:1836: } On 2012/10/17 06:14:26, davidxl wrote: > so it ...
11 years, 6 months ago (2012-10-17 18:37:03 UTC) #6
dehao
not sure why this shows "bad content"... On 2012/10/17 05:09:38, davidxl wrote: > in predict.c ...
11 years, 6 months ago (2012-10-17 18:43:39 UTC) #7
davidxl
On Wed, Oct 17, 2012 at 11:43 AM, <dehao@google.com> wrote: > not sure why this ...
11 years, 6 months ago (2012-10-17 18:50:55 UTC) #8
dehao
On Wed, Oct 17, 2012 at 11:50 AM, Xinliang David Li <davidxl@google.com>wrote: > On Wed, ...
11 years, 6 months ago (2012-10-17 20:02:38 UTC) #9
davidxl
https://codereview.appspot.com/6567079/diff/2001/gcc/auto-profile.c File gcc/auto-profile.c (right): https://codereview.appspot.com/6567079/diff/2001/gcc/auto-profile.c#newcode646 gcc/auto-profile.c:646: (*entry_count) += func_entry->entry_count; But it is always reset to ...
11 years, 6 months ago (2012-10-22 21:04:58 UTC) #10
dehao
https://codereview.appspot.com/6567079/diff/2001/gcc/auto-profile.c File gcc/auto-profile.c (right): https://codereview.appspot.com/6567079/diff/2001/gcc/auto-profile.c#newcode646 gcc/auto-profile.c:646: (*entry_count) += func_entry->entry_count; Yes, you are right. The merging ...
11 years, 6 months ago (2012-10-22 23:48:53 UTC) #11
davidxl
11 years, 5 months ago (2012-11-16 23:39:12 UTC) #12
https://codereview.appspot.com/6567079/diff/29001/gcc/auto-profile.c
File gcc/auto-profile.c (right):

https://codereview.appspot.com/6567079/diff/29001/gcc/auto-profile.c#newcode2
gcc/auto-profile.c:2: Copyright (C) 2011. Free Software Foundation, Inc.
2011 --> 2012

https://codereview.appspot.com/6567079/diff/29001/gcc/auto-profile.c#newcode1015
gcc/auto-profile.c:1015: /*      inform (0, "Vesion number does not mathch.");
typo.

https://codereview.appspot.com/6567079/diff/29001/gcc/auto-profile.c#newcode1016
gcc/auto-profile.c:1016: flag_auto_profile = 0;
Commented out?

https://codereview.appspot.com/6567079/diff/29001/gcc/auto-profile.c#newcode1657
gcc/auto-profile.c:1657: 
Document return value.

https://codereview.appspot.com/6567079/diff/29001/gcc/auto-profile.h
File gcc/auto-profile.h (right):

https://codereview.appspot.com/6567079/diff/29001/gcc/auto-profile.h#newcode3
gcc/auto-profile.h:3: Free Software Foundation, Inc.
The copyright date should be 2012
Sign in to reply to this message.

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