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

Robert Grosse grosse at google.com
Tue Jul 23 13:22:36 PDT 2013

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/20130723/4ff9d649/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: instrumentsize.patch
Type: application/octet-stream
Size: 9263 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130723/4ff9d649/attachment.obj>

More information about the cfe-commits mailing list