The builtin_expect(), and C++20's likely, unlikely attributes assign branch_weights to annotated branches.
This patch adds the the ability to query branch !prof metadata and improve static analysis based on that.
Differential D159336
Statically analyze likely and unlikely blocks based on metadata hiraditya on Aug 31 2023, 11:02 PM. Authored by
Details The builtin_expect(), and C++20's likely, unlikely attributes assign branch_weights to annotated branches. This patch adds the the ability to query branch !prof metadata and improve static analysis based on that.
Diff Detail Event Timeline
Comment Actions lgtm wth a couple of small test tweaks.
|
When does this happen?