[llvm] r176214 - The FastISEL should be fast. But when we record statistics we use atomic operations to increment the counters.

Eli Bendersky eliben at google.com
Thu Feb 28 08:42:47 PST 2013


On Wed, Feb 27, 2013 at 1:59 PM, Nadav Rotem <nrotem at apple.com> wrote:
> Author: nadav
> Date: Wed Feb 27 15:59:43 2013
> New Revision: 176214
>
> URL: http://llvm.org/viewvc/llvm-project?rev=176214&view=rev
> Log:
> The FastISEL should be fast. But when we record statistics we use atomic operations to increment the counters.
> This patch disables the counters on non-debug builds. This reduces the runtime of SelectionDAGISel::SelectCodeCommon by ~5%.
>
>

Awesome! These statistics, always ticking but just *reported* in debug
mode were indeed suspicious.

Eli



More information about the llvm-commits mailing list