[llvm] [SHT_LLVM_BB_ADDR_MAP] Add an option to skip emitting bb entries (PR #114447)
Lei Wang via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 13 11:26:37 PST 2024
================
@@ -1411,8 +1418,15 @@ getBBAddrMapFeature(const MachineFunction &MF, int NumMBBSectionRanges) {
bool BrProbEnabled =
AllFeatures ||
(!NoFeatures && PgoAnalysisMapFeatures.isSet(PGOMapFeaturesEnum::BrProb));
+
+ if ((BBFreqEnabled || BrProbEnabled) && BBAddrMapSkipEmitBBEntries) {
+ MF.getFunction().getContext().emitError(
+ "BB entries info is required for BBFreq and BrProb "
----------------
wlei-llvm wrote:
There is a test to check it would fail, just added to check the error message
https://github.com/llvm/llvm-project/pull/114447
More information about the llvm-commits
mailing list