[llvm-dev] GSoC Proposal : Path Profiling Support

Vedant Kumar via llvm-dev llvm-dev at lists.llvm.org
Tue Mar 22 00:04:15 PDT 2016


I've added some inline comments to your proposal doc.

It would be nice to get feedback from potential users of path profile
information, like people who work on GVN.

Some general notes:

- It would be nice to measure the performance variation between programs
  optimized with edge-based profiles vs. with path profiles.

- I'd be curious to see comparisons with the instrprof framework (compile time,
  exec time, profile size, binary size). This would establish a concrete target
  to beat.


> David, Vedant it would be great if I could get some advice on refining
> the goals and particulars of the implementation.
> The version we use internally is not performance oriented and will
> require refactoring.
> Here is a link to the draft document [1].
> 
> [1] https://docs.google.com/document/d/18i9FvD7FSqX6tNEXb83gzc0EC_STeS3bWOVf167sFWk/edit?usp=sharing
> 
>>>>>> Open Issues :
>>>>>> + Update PathProfileInfo on CFG transformations ?
>>>> 
>>>>> Could you clarify what this means?
>>>> 
>>>> Changing the control flow graph of a routine may invalidate collected path
>>>> profiles. For example, splitting a block with an unconditional branch does
>>>> not change the profile, but introducing a conditional branch invalidates the
>>>> profile. The issue I would like to address is which transformations should
>>>> we allow as safe transformations and how should we update the internal path
>>>> profile data structures if we allow this at all.

It seems that existing optimization passes can make changes that could invalidate
a path profile. Is it expensive to detect these changes and invalidate the affected
portions of the profile?

vedant


More information about the llvm-dev mailing list