]> granicus.if.org Git - llvm/commit
[sampleprof] Drop test dependency on the string hash func (NFC)
authorVedant Kumar <vsk@apple.com>
Wed, 26 Apr 2017 15:39:53 +0000 (15:39 +0000)
committerVedant Kumar <vsk@apple.com>
Wed, 26 Apr 2017 15:39:53 +0000 (15:39 +0000)
commit86d385f5e5d216182e51d8e9eaf0693f83d3ea0c
tree45c8afdeef2b7f77ff5d6a6f234d94cc2aaa3e45
parent5cc9392ddb4f7921ad51c96c455ad18144b176ee
[sampleprof] Drop test dependency on the string hash func (NFC)

The SampleProfWriter emits function information in an order determined
by the string hash function. The situation is a bit brittle, because
changing the hash function can break the tests.

Instead of sorting the function samples to get a relaible ordering (that
might be too expensive), make the tests not depend on a particular
ordering of function samples.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@301419 91177308-0d34-0410-b5e6-96231b3b80d8
test/tools/llvm-profdata/overflow-sample.test
test/tools/llvm-profdata/sample-profile-basic.test
test/tools/llvm-profdata/weight-sample.test