[PATCH] Add option to filter finstrument-functions by size

Robert Grosse grosse at google.com
Wed Jul 24 14:03:55 PDT 2013


new patch that applies cleanly


On Tue, Jul 23, 2013 at 1:22 PM, Robert Grosse <grosse at google.com> wrote:

> When instrumenting functions, it is often desirable to avoid instrumenting
> small functions for performance reasons. This patch adds an option,
> -finstrument-functions-size=n which lets you selectively apply function
> instrumentation to functions with at least n basic blocks.
>
> It also fixes the tests associated with -finstrument-functions.
> Previously, the CHECK-NOT assertions passed even when the function in
> question actually was instrumented due to overly lax string matching.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130724/62012f05/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: instrumentsize2.patch
Type: application/octet-stream
Size: 9263 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130724/62012f05/attachment.obj>


More information about the cfe-commits mailing list