[llvm-dev] How can I tell llvm, that a branch is preferred ?
Diego Novillo via llvm-dev
llvm-dev at lists.llvm.org
Tue Oct 27 11:03:26 PDT 2015
On Tue, Oct 27, 2015 at 10:55 AM, Nat! via llvm-dev <llvm-dev at lists.llvm.org
> If I read the llvm language correctly, it doesn't have a way to specify
> the preferred branch, correct ? I see nothing in the specs for "branch" or
> "switch". And __buildin_expect does nothing, that I am sure of.
Well, you could generate a !prof annotation to specify branch weights that
are then used when computing branch probability and block frequencies (
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-dev