llvm-project
6a8c193b - Thread SharedSampleProfile through PGOOptions and SampleProfileLoader.

Commit
48 minutes ago
Thread SharedSampleProfile through PGOOptions and SampleProfileLoader. Parallel pass pipelines such as rustc codegen workers need a way to pass a pre-parsed `SharedSampleProfile` into `SampleProfileLoader` without reopening the profile per module. Add an optional `SharedSampleProfile` field to `PGOOptions` (asserting `Action == SampleUse` in `PGOOptions::resolve()`) and forward it through `SampleProfileLoaderPass` to `SampleProfileReader::create` and `takeSharedProfileSymbolList()`.
Author
Committer
Parents
Loading