[PATCH] D32509: Replace HashString algorithm with xxHash64
Vedant Kumar via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 27 08:40:58 PDT 2017
vsk added a comment.
In https://reviews.llvm.org/D32509#739006, @scott.smith wrote:
> In https://reviews.llvm.org/D32509#738971, @vsk wrote:
>
> > Is it necessary to have a mac to run the mach-o tests? At any rate, changing the 'CHECK'/'DCHECK' lines to 'CHECK-DAG'/'DCHECK-DAG' should do the trick.
>
>
> AFAIK the test only failed on the mac buildbot. I'm of two minds on CHECK vs CHECK-DAG; it makes the test immune to hash order issues, but in some cases I believe it can make the test too permissive, since in the end it just makes sure the lines are present, not that they are grouped together in any meaningful way.
That's a fair point. My thinking was that since the output being tested relies on the hash function to for ordering, the test shouldn't be checking for a particular order. But, instead of making the tests more permissive, we could simply sort things before printing them.
Repository:
rL LLVM
https://reviews.llvm.org/D32509
More information about the llvm-commits
mailing list