Re: [GOOGLE] Assign discriminators for different callsites at a same line within one BB

2013-08-21 Thread Cary Coutant
> You are right, we need discriminator for non-CALL stmts too. Patch updated: OK for google branches. Thanks! -cary

Re: [GOOGLE] Assign discriminators for different callsites at a same line within one BB

2013-08-20 Thread Dehao Chen
You are right, we need discriminator for non-CALL stmts too. Patch updated: Index: gcc/tree-cfg.c === --- gcc/tree-cfg.c (revision 201858) +++ gcc/tree-cfg.c (working copy) @@ -781,9 +781,37 @@ assign_discriminators (void) {

Re: [GOOGLE] Assign discriminators for different callsites at a same line within one BB

2013-08-20 Thread Cary Coutant
> This patch assigns discriminators for different callsites within the > same BB. This is needed for accurate profile attribution in AutoFDO. > > Testing on going. > > OK for google branches if test pass? > + for (gsi = gsi_start_bb (bb); !gsi_end_p (gsi); gsi_next (&gsi)) > + { > + gimple s

Re: [GOOGLE] Assign discriminators for different callsites at a same line within one BB

2013-08-19 Thread Dehao Chen
All tests pass. Dehao On Mon, Aug 19, 2013 at 3:02 PM, Dehao Chen wrote: > This patch assigns discriminators for different callsites within the > same BB. This is needed for accurate profile attribution in AutoFDO. > > Testing on going. > > OK for google branches if test pass? > > Thanks, > Deha

[GOOGLE] Assign discriminators for different callsites at a same line within one BB

2013-08-19 Thread Dehao Chen
This patch assigns discriminators for different callsites within the same BB. This is needed for accurate profile attribution in AutoFDO. Testing on going. OK for google branches if test pass? Thanks, Dehao Index: gcc/tree-cfg.c ==