[SampleFDO] Enable FSAFDO loading passes if --enable-fs-discriminator is enabled
authorRong Xu <xur@google.com>
Fri, 4 Feb 2022 20:23:47 +0000 (12:23 -0800)
committerRong Xu <xur@google.com>
Sun, 6 Feb 2022 06:37:09 +0000 (22:37 -0800)
commit52d981a4c13a8b320feba59cd851d58923267bed
tree51b3617dc5351545d3a1bf5e0a7e5cfae520a38c
parent2d650ee03e0b0fb5ca4d779354ec04b1b9c51c83
[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
llvm/lib/CodeGen/TargetPassConfig.cpp