[PATCH] D15828: [PGO] Passmanagerbuilder change that enable IR level PGO instrumentation
Rong Xu via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 30 13:46:01 PST 2015
xur created this revision.
xur added reviewers: davidxl, silvas, bogner.
xur added a subscriber: llvm-commits.
Herald added a subscriber: joker.eph.
This patch includes the passmanagerbuilder change that enables IR level PGO instrumentation. It adds two passmanagerbuilder options:
which is primary for debug purpose (or called directly from opt).
It adds two fields in class PassManagerBuilder:
which specifies profile name for generation and use passes, respectively.
In PassManagerBuilder::populateModulePassManager(), it adds a preinstrumenation inline pass if IR level instrumentation is enabled. It then calls the profile generation or use pass as the option specified.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 4896 bytes
Desc: not available
More information about the llvm-commits