aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorMircea Trofin <mtrofin@google.com>2024-09-23 15:21:25 -0700
committerGitHub <noreply@github.com>2024-09-23 15:21:25 -0700
commit783bac7ffb8f0d58d7381d90fcaa082eb0be1c1d (patch)
tree93f998c44ffb7558c2f4f3c8057a9ffaa8c5514b /clang/lib/CodeGen/CodeGenModule.cpp
parent0a5edb4de408ae0405f85c3e4c6da5233f185f63 (diff)
downloadllvm-783bac7ffb8f0d58d7381d90fcaa082eb0be1c1d.zip
llvm-783bac7ffb8f0d58d7381d90fcaa082eb0be1c1d.tar.gz
llvm-783bac7ffb8f0d58d7381d90fcaa082eb0be1c1d.tar.bz2
[ctx_prof] Handle `select` and its `step` instrumentation (#109185)
The `step` instrumentation shouldn't be treated, during use, like an `increment`. The latter is treated as a BB ID. The step isn't that, it's more of a type of value profiling. We need to distinguish between the 2 when really looking for BB IDs (==increments), and handle appropriately `step`s. In particular, we need to know when to elide them because `select`s may get elided by function cloning, if the condition of the select is statically known.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions