[PATCH] D159336: Statically analyze likely and unlikely blocks based on metadata
Aditya Kumar via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 31 23:02:28 PDT 2023
hiraditya created this revision.
hiraditya added reviewers: tejohnson, efriedma.
Herald added subscribers: hoy, ormris.
Herald added a project: All.
hiraditya requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
The C++ [unlikely] attribute assigns a low probability branch_weights to branch. This patch adds the the ability to query branch !prof metadata and improve static analysis based on that.
https://github.com/llvm/llvm-project/issues/64998
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D159336
Files:
llvm/lib/Transforms/IPO/HotColdSplitting.cpp
llvm/test/Transforms/HotColdSplit/split-static-profile.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D159336.555266.patch
Type: text/x-patch
Size: 4491 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230901/8104a0be/attachment.bin>
More information about the llvm-commits
mailing list