aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/ExecutionEngine/Orc/ObjectLinkingLayerTest.cpp
diff options
context:
space:
mode:
authorJin Huang <jinhuang1102@gmail.com>2025-10-08 19:50:28 -0700
committerGitHub <noreply@github.com>2025-10-08 19:50:28 -0700
commitbf34b2e2df2ec55483ee678fc7c5c0fbfda35e98 (patch)
treea54781f4677cb3972c636a67bc2db8cb137cdce9 /llvm/unittests/ExecutionEngine/Orc/ObjectLinkingLayerTest.cpp
parent72fe2d2ca10184fa4fd2c5fe863ab3458c666e14 (diff)
downloadllvm-bf34b2e2df2ec55483ee678fc7c5c0fbfda35e98.zip
llvm-bf34b2e2df2ec55483ee678fc7c5c0fbfda35e98.tar.gz
llvm-bf34b2e2df2ec55483ee678fc7c5c0fbfda35e98.tar.bz2
[profcheck] Add heuristical profile metadata for lowering table-based cttz. (#161898)
When lowering a `table-based cttz` calculation to the `llvm.cttz` intrinsic, `AggressiveInstCombine` was not attaching profile metadata to the newly generated `select` instruction. This PR adds heuristic branch weights to the `select`. It uses a strong 100-to-1 probability favoring the `cttz` path over the zero-input case. This allows later passes to optimize code layout and branch prediction.
Diffstat (limited to 'llvm/unittests/ExecutionEngine/Orc/ObjectLinkingLayerTest.cpp')
0 files changed, 0 insertions, 0 deletions