diff options
| author | Mircea Trofin <mtrofin@google.com> | 2025-10-30 10:37:15 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-30 10:37:15 -0700 |
| commit | e63f0f50fae479b4eaec98ac97de0745735a90b7 (patch) | |
| tree | dc6ff616044764af0577a5b6a78bb36397805de3 /lldb/source/Plugins/ScriptInterpreter/Python/lldb-python.h | |
| parent | 784b74c6ef8a7f6ffaa7ab250eb35696dd833426 (diff) | |
| download | llvm-e63f0f50fae479b4eaec98ac97de0745735a90b7.zip llvm-e63f0f50fae479b4eaec98ac97de0745735a90b7.tar.gz llvm-e63f0f50fae479b4eaec98ac97de0745735a90b7.tar.bz2 | |
[SLU][profcheck] Estimate branch weights in partial unswitch cases (#164035)
In the case of a partial unswitch, we take the invariant part of an expression consisting of either conjunctions or disjunctions, and hoist it out of the loop, conditioning a branch on it (==the invariant part). We can't correctly calculate the branch probability of this new branch, but can use the probability of the existing branch as a bound. That would preserve block frequencies better than allowing for the default, static (50-50) probability for that branch.
Issue #147390
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/lldb-python.h')
0 files changed, 0 insertions, 0 deletions
