[llvm-dev] How can I tell llvm, that a branch is preferred ?

Nat! via llvm-dev llvm-dev at lists.llvm.org
Tue Oct 27 15:55:03 PDT 2015

This somehow reminds me on this old anecdote:

A novice was trying to fix a broken Lisp machine by turning the power 
off and on.

Knight, seeing what the student was doing, spoke sternly: “You cannot 
fix a machine by just power-cycling it with no understanding of what is 
going wrong.”

Knight turned the machine off and on.

The machine worked.

For whatever reason, now that I know what to look for, I see that 
branchweights are emitted. And for some reason, it works now as expected 
(though I like to blame Xcodes deficient Assembly preview, for some of 
my confusion :))

Thanks for the help


More information about the llvm-dev mailing list