diff options
author | Jin Huang <jinhuang1102@gmail.com> | 2025-10-08 19:50:28 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-10-08 19:50:28 -0700 |
commit | bf34b2e2df2ec55483ee678fc7c5c0fbfda35e98 (patch) | |
tree | a54781f4677cb3972c636a67bc2db8cb137cdce9 /llvm/unittests/ExecutionEngine/Orc/ObjectLinkingLayerTest.cpp | |
parent | 72fe2d2ca10184fa4fd2c5fe863ab3458c666e14 (diff) | |
download | llvm-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