This is an archive of the discontinued LLVM Phabricator instance.

[PGO] Refactor the code for value profile annotation
ClosedPublic

Authored by xur on Mar 15 2017, 10:21 AM.

Details

Summary

This patch refactors the code for value profile annotation to facilitate of adding other kind of value profiles.

Diff Detail

Repository
rL LLVM

Event Timeline

xur created this revision.Mar 15 2017, 10:21 AM
davidxl accepted this revision.Mar 15 2017, 10:44 AM

lgtm

lib/Transforms/Instrumentation/PGOInstrumentation.cpp
389 ↗(On Diff #91897)

use the constructor to set the size?

This revision is now accepted and ready to land.Mar 15 2017, 10:44 AM
This revision was automatically updated to reflect the committed changes.