The FastISEL should be fast. But when we record statistics we use atomic operations...
authorNadav Rotem <nrotem@apple.com>
Wed, 27 Feb 2013 21:59:43 +0000 (21:59 +0000)
committerNadav Rotem <nrotem@apple.com>
Wed, 27 Feb 2013 21:59:43 +0000 (21:59 +0000)
commit07cd932c93fc3d552763f3eddced138bffdd9bd9
tree7176f3050e863d2ba6c699d4d55045a13e083a6b
parentcd275c57afda09f7c0ee98f23d0f243d5dc3fc8b
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%.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@176214 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp