This patch was split from https://reviews.llvm.org/D102246
[SampleFDO] New hierarchical discriminator for Flow Sensitive SampleFDO
This is for llvm-profdata part of change. It sets the bit masks for the
profile reader in llvm-profdata. Also add an internal option
"-fs-discriminator-pass" for show and merge command to process the profile
offline.
Details
Diff Detail
Event Timeline
llvm/include/llvm/Support/Discriminator.h | ||
---|---|---|
59 | The cl::opt FSDiscriminatorPassOption doesn't have Pass0. Was it intentional to allow Pass0 as alias for Base? |
llvm/include/llvm/Support/Discriminator.h | ||
---|---|---|
59 | Yes. that's an alias (same as Pass4 and PassLast). | |
llvm/tools/llvm-profdata/llvm-profdata.cpp | ||
570 | That's a good idea -- I think this would simplify the code. Let me do the change. |
Integrated Hongtao's suggestion to move setDiscriminatorMaskedBitFrom() to SampleProfileReader::create()
llvm/tools/llvm-profdata/llvm-profdata.cpp | ||
---|---|---|
570 | Thanks for working on it. LGTM. |
The cl::opt FSDiscriminatorPassOption doesn't have Pass0. Was it intentional to allow Pass0 as alias for Base?