r206995 - Review feedback

Richard Smith richard at metafoo.co.uk
Wed Apr 23 11:33:43 PDT 2014


On Wed, Apr 23, 2014 at 11:22 AM, Robinson, Paul <
Paul_Robinson at playstation.sony.com> wrote:

> > -----Original Message-----
> > From: cfe-commits-bounces at cs.uiuc.edu [mailto:cfe-commits-
> > bounces at cs.uiuc.edu] On Behalf Of Diego Novillo
> > Sent: Wednesday, April 23, 2014 8:21 AM
> > To: cfe-commits at cs.uiuc.edu
> > Subject: r206995 - Review feedback
> ...
> >  In particular, sample profilers can provide execution counts for all
> > -instructions in the code, information on branches taken and function
> > +instructions in the code and information on branches taken and function
>
> This reads better with the comma. (It's debatable whether there should
> be a second comma before "and function" (the interminable "serial comma"
> debate)).
>

I'm indifferent on putting a comma before the first 'and'. There should
definitely not be a second comma. This is intended to parse as:

 In particular, sample profilers can provide
  * execution counts for all instructions in the code and
  * information on branches taken and function invocation.

Adding a comma before each 'and' would lead this to parse as

 In particular, sample profilers can provide
  * execution counts for all instructions in the code, and
  * information on branches taken, and
  * function invocation.

... which is not what was intended.


> --paulr
>
> >  invocation. The compiler can use this information in its optimization
> >  cost models. For example, knowing that a branch is taken very
> >  frequently helps the compiler make better decisions when ordering
> >  basic blocks. Knowing that a function ``foo`` is called more
> > -frequently than another ``bar`` helps the inliner.
> > +frequently than another function ``bar`` helps the inliner.
>
>
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140423/71a531a3/attachment.html>


More information about the cfe-commits mailing list