[llvm] r176214 - The FastISEL should be fast. But when we record statistics we use atomic operations to increment the counters.
Eric Christopher
echristo at gmail.com
Wed Feb 27 14:26:01 PST 2013
> This patch disables the counters on non-debug builds. This reduces the
> runtime of SelectionDAGISel::SelectCodeCommon by ~5%.
>
Hey, good idea. Wonder if we should do this in general and make statistics
gathering dependent upon NDEBUG?
> - unsigned NumFastIselRemaining = std::distance(Begin, End);
> + unsigned NumFastIselRemaining = 0;
> + NumFastIselRemaining = std::distance(Begin, End);
>
Eh?
-eric
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130227/4e8a5807/attachment.html>
More information about the llvm-commits
mailing list