[cfe-dev] [PATCH] ubsan: Emit branch metadata

Will Dietz willdtz at gmail.com
Thu Dec 13 09:23:16 PST 2012


As previously discussed, default block placement for ubsan handler
blocks (when recoverable) are suboptimal and cause poor icache
performance.

Attached is a simple patch adding strong branch hints to ensure proper
block placement.

Also, I've attached an extended version of the previous set of
experiments that includes results for this change vs without this
change, as well as the similarly isolated impact of using the ColdCC
change.

In summary, this minor change brings overall slowdown from 34% to 23%,
and relative to NoRecover from 20% to 10%.

Easy win :).

Ok to commit?

~Will
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-ubsan-Emit-branch-weight-metadata-to-hint-towards-co.patch
Type: application/octet-stream
Size: 1281 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20121213/09bc3cc8/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: recover.pdf
Type: application/pdf
Size: 7953 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20121213/09bc3cc8/attachment.pdf>


More information about the cfe-dev mailing list