[llvm-commits] PATCH: Provide branch weight metadata forinstrumentation branches in AddressSanitizer=
Nuno Lopes
nunoplopes at sapo.pt
Mon Jul 16 19:40:38 PDT 2012
In theory, the branch probability code already recognizes BBs with
unreachable terminator and assigns them a low probability.
If that's not the case, maybe we should have a look at that.
Nuno
-----Original Message-----
From: Chandler Carruth
Sent: Monday, July 16, 2012 10:10 AM
I have no idea if this heuristic is correct, but I suspect it's pretty
good...
It doesn't really matter what heuristic is used if we insert
'unreachable' -- that should trump all else, but it seemed simpler to just
always set a flat heavy bias toward the "nothing wrong" direction. Looking
at the asm output, the metadata has the desired effect.
More information about the llvm-commits
mailing list