[ADT] Compare strings' hashes first before comparing their values.
authorJustin Lebar <jlebar@google.com>
Fri, 21 Oct 2016 20:10:51 +0000 (20:10 +0000)
committerJustin Lebar <jlebar@google.com>
Fri, 21 Oct 2016 20:10:51 +0000 (20:10 +0000)
commitc9d66eb05b3e76e3d33e4f11525ef888f1629234
tree36a8cbdc2a0390c253ec541168691353df741a01
parentd87ea9a1c9190737ee23a4eda641d0fb1b8b489d
[ADT] Compare strings' hashes first before comparing their values.

Summary:
We already have the hashes in hand, and comparing hashes should be much
more discriminatory than comparing the StringRefs' sizes.

Reviewers: rafael

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D25705

llvm-svn: 284872
llvm/include/llvm/ADT/CachedHashString.h