[llvm] Adding Matching and Inference Functionality to Propeller-PR2 (PR #162963)

via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 20 22:22:01 PDT 2025


================
@@ -1438,7 +1443,7 @@ getBBAddrMapFeature(const MachineFunction &MF, int NumMBBSectionRanges,
           MF.hasBBSections() && NumMBBSectionRanges > 1,
           static_cast<bool>(BBAddrMapSkipEmitBBEntries),
           HasCalls,
-          false};
+          static_cast<bool>(EmitBBHash)};
----------------
wdx727 wrote:

The `getValue` method would work, but given that the existing code here uses `static_cast<bool>(BBAddrMapSkipEmitBBEntries)` with `static_cast`, we intend to stick with `static_cast` for style consistency. Is this acceptable?

https://github.com/llvm/llvm-project/pull/162963


More information about the llvm-commits mailing list