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

Issue 5896043: Propagate profile counts after switch case expansion

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 7 months ago by eraman
Modified:
10 years, 10 months ago
Reviewers:
andi, hubicka
CC:
gcc-patches_gcc.gnu.org
Visibility:
Public.

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+342 lines, -63 lines) Patch
M gcc/cfgbuild.c View 2 chunks +19 lines, -0 lines 0 comments Download
M gcc/expr.h View 1 chunk +1 line, -1 line 0 comments Download
M gcc/expr.c View 5 chunks +17 lines, -7 lines 0 comments Download
M gcc/stmt.c View 37 chunks +225 lines, -55 lines 0 comments Download
A gcc/testsuite/gcc.dg/tree-prof/switch-case-1.c View 1 chunk +40 lines, -0 lines 0 comments Download
A gcc/testsuite/gcc.dg/tree-prof/switch-case-2.c View 1 chunk +40 lines, -0 lines 0 comments Download

Messages

Total messages: 9
eraman
This patch propagates execution count of thee case labels of a switch-case statement after its ...
13 years, 7 months ago (2012-03-23 17:43:11 UTC) #1
eraman
Some more background on this patch: Right now, while the execution counts of different case ...
13 years, 7 months ago (2012-03-23 19:34:20 UTC) #2
andi_firstfloor.org
Easwaran Raman <eraman@google.com> writes: > Some more background on this patch: Right now, while the ...
13 years, 7 months ago (2012-03-23 22:29:42 UTC) #3
eraman
On Fri, Mar 23, 2012 at 3:29 PM, Andi Kleen <andi@firstfloor.org> wrote: > Easwaran Raman ...
13 years, 7 months ago (2012-03-23 22:35:47 UTC) #4
andi_firstfloor.org
> Do you mean use the weights to decide the shape of the binary tree ...
13 years, 7 months ago (2012-03-23 22:38:51 UTC) #5
hubicka_ucw.cz
> This patch propagates execution count of thee case labels of a > switch-case statement ...
13 years, 7 months ago (2012-03-25 19:22:20 UTC) #6
eraman
On Sun, Mar 25, 2012 at 12:22 PM, Jan Hubicka <hubicka@ucw.cz> wrote: >> This patch ...
13 years, 7 months ago (2012-03-26 04:40:18 UTC) #7
eraman
On Sun, Mar 25, 2012 at 9:40 PM, Easwaran Raman <eraman@google.com> wrote: > On Sun, ...
13 years, 7 months ago (2012-04-09 21:33:22 UTC) #8
eraman
13 years, 6 months ago (2012-04-16 20:55:28 UTC) #9
Ping. On Mon, Apr 9, 2012 at 2:33 PM, Easwaran Raman <eraman@google.com> wrote: > On Sun, Mar 25, 2012 at 9:40 PM, Easwaran Raman <eraman@google.com> wrote: >> On Sun, Mar 25, 2012 at 12:22 PM, Jan Hubicka <hubicka@ucw.cz> wrote: >>>> This patch propagates execution count of thee case labels of a >>>> switch-case statement after its expansion. Bootstraps and all >>>> tests pass. OK for trunk? >>> >>> Hi, >>> while this is resonable thing to do, I belive it would make most sense >>> to make switch lowering at gimple level: i.e. reorganize the existing >>> code to produce gimple statement and change expansion code to produce >>> tablejump from every gimple switch statement that was left in the >>> code. >>> >>> This would be both cleaner and would allow gimple optimizers to improve the >>> generated code. Incrementally it would also allow us to improve switch exansion >>> that is quite baroque and not realy producing very good code in some common >>> cases. >>> >>> If you would be interested working on this (i.e. reorganizing the expansion >>> code to produce gimple), I would be very happy. If not, I can review the >>> profile updating part for mainline, since in any case this is desriable thing >>> to do. >> >> I am planning to explore improvements to switch expansion (peeling >> some cases and using jump tables for the rest, for example) and I >> think the reorganization you suggest is the right way to do such >> improvements. But until I can spend time on it and get it done, I >> would like this patch to get reviewed and checked in. >> >> Thanks, >> Easwaran > > Ping. 
Sign in to reply to this message.

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