[llvm-commits] PATCH: Provide branch weight metadata for instrumentation branches in AddressSanitizer=

Chandler Carruth chandlerc at gmail.com
Mon Jul 16 02:10:54 PDT 2012


The patch helps....


On Mon, Jul 16, 2012 at 2:10 AM, Chandler Carruth <chandlerc at gmail.com>wrote:

> 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.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120716/adcb28f2/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: asan-branch-weights.patch
Type: application/octet-stream
Size: 3552 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120716/adcb28f2/attachment.obj>


More information about the llvm-commits mailing list