[llvm] r308668 - [PGO] Move the PGOInstrumentation pass to new OptRemark API.

Davide Italiano via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 26 23:31:15 PDT 2017


On Thu, Jul 20, 2017 at 1:43 PM, Davide Italiano via llvm-commits
<llvm-commits at lists.llvm.org> wrote:
> Author: davide
> Date: Thu Jul 20 13:43:05 2017
> New Revision: 308668
>
> URL: http://llvm.org/viewvc/llvm-project?rev=308668&view=rev
> Log:
> [PGO] Move the PGOInstrumentation pass to new OptRemark API.
>
> This fixes PR33791.
>

For archeologists (I should actually have included this into my commit
message, but alas), this creates an `ORE` object on demand rather than
using the analysis as OptRemarkAnalysis is a function pass while
PGOInstrumentation is a ModulePass.
Pretty much every other ModulePass using ORE needs to follow the same
pattern (see e.g. the PartialInliner).

--
Davide


More information about the llvm-commits mailing list