HomePhabricator

[CSSPGO][llvm-profdata] Support trimming cold context when merging profiles

Authored by wenlei on Apr 14 2021, 10:53 PM.

Description

[CSSPGO][llvm-profdata] Support trimming cold context when merging profiles

The change adds support for triming and merging cold context when mergine CSSPGO profiles using llvm-profdata. This is similar to the context profile trimming in llvm-profgen, however the flexibility to trim cold context after profile is generated can be useful.

Differential Revision: https://reviews.llvm.org/D100528