summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2017-10-07 14:34:24 +0000
committerSimon Pilgrim <llvm-dev@redking.me.uk>2017-10-07 14:34:24 +0000
commitb021b13aacd9b6659659aafdc7182f1343d3bb77 (patch)
tree1f565773ce89be38c724df0da916cdbb1914665e /llvm/test
parent73f143e7743f1df10d539de4816c9351594c334f (diff)
downloadbcm5719-llvm-b021b13aacd9b6659659aafdc7182f1343d3bb77.tar.gz
bcm5719-llvm-b021b13aacd9b6659659aafdc7182f1343d3bb77.zip
[TableGen] Avoid repeated find calls in CodeGenDAGPatterns getters. NFCI.
The assertion tests were using count() instead of testing the find result, resulting in double the number of searches in debug/assert builds. Instead, call find once (like the release builds do) and assert the result against end(). llvm-svn: 315151
Diffstat (limited to 'llvm/test')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud