[llvm] [BranchProbabilityInfo][NFC] Remove some global ctors (PR #208252)

via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 8 09:19:57 PDT 2026


llvmorg-github-actions[bot] wrote:


<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-llvm-support

@llvm/pr-subscribers-llvm-analysis

Author: Alexis Engelke (aengelke)

<details>
<summary>Changes</summary>

Make BranchProbability constexpr and replace global std::map with
switches.


---
Full diff: https://github.com/llvm/llvm-project/pull/208252.diff


4 Files Affected:

- (modified) llvm/include/llvm/Analysis/BranchProbabilityInfo.h (+2-3) 
- (modified) llvm/include/llvm/Support/BranchProbability.h (+21-7) 
- (modified) llvm/lib/Analysis/BranchProbabilityInfo.cpp (+74-90) 
- (modified) llvm/lib/Support/BranchProbability.cpp (-12) 


``````````diff
The server is unavailable at this time. Please wait a few minutes before you try again.
``````````

</details>


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


More information about the llvm-commits mailing list