forked from OSchip/llvm-project
[SampleFDO] Enable FSAFDO loading passes if --enable-fs-discriminator is enabled
FSAFDO profile loader is currently disabled even --enable-fs-discriminator is enabled. They need to be turned on by options which makes it cumbersome for experiments. This patch changes the FSAFDO profile loader enabled by default. Since they are guarded by EnableFSDiscriminator, they will only be turned on if --enable-fs-discriminator is enabled. Note that --enable-fs-discriminator is still disabled by default. Differential Revision: https://reviews.llvm.org/D119033
This commit is contained in:
parent
2d650ee03e
commit
52d981a4c1
|
@ -175,12 +175,12 @@ static cl::opt<bool>
|
|||
// Disable MIRProfileLoader before RegAlloc. This is for for debugging and
|
||||
// tuning purpose.
|
||||
static cl::opt<bool> DisableRAFSProfileLoader(
|
||||
"disable-ra-fsprofile-loader", cl::init(true), cl::Hidden,
|
||||
"disable-ra-fsprofile-loader", cl::init(false), cl::Hidden,
|
||||
cl::desc("Disable MIRProfileLoader before RegAlloc"));
|
||||
// Disable MIRProfileLoader before BloackPlacement. This is for for debugging
|
||||
// and tuning purpose.
|
||||
static cl::opt<bool> DisableLayoutFSProfileLoader(
|
||||
"disable-layout-fsprofile-loader", cl::init(true), cl::Hidden,
|
||||
"disable-layout-fsprofile-loader", cl::init(false), cl::Hidden,
|
||||
cl::desc("Disable MIRProfileLoader before BlockPlacement"));
|
||||
// Specify FSProfile file name.
|
||||
static cl::opt<std::string>
|
||||
|
|
Loading…
Reference in New Issue