This is an archive of the discontinued LLVM Phabricator instance.

Add xxhash to llvm
ClosedPublic

Authored by rafael on Sep 26 2016, 6:28 PM.

Details

Reviewers
emaste
ruiu
davide
Summary

It seems an improvement over murmur which we currently use for fingerprinting in lld:

firefox

master 7.050784981
patch  6.842361079 0.970439617353

chromium

master 4.260626249
patch  4.183148025 0.981815296749

chromium fast

master 1.829028591
patch  1.806439277 0.987649556649

the gold plugin

master 0.336154128
patch  0.331893374 0.987324998728

clang

master 0.561869781
patch  0.558640828 0.994253200458

llvm-as

master 0.034025959
patch  0.033984389 0.99877828572

the gold plugin fsds

master 0.360710529
patch  0.356483564 0.988281559145

clang fsds

master 0.640518422
patch  0.632329874 0.987215749432

llvm-as fsds

master 0.031569416
patch  0.030822055 0.976326423017

scylla

master 3.154770529
patch  3.11982016 0.988921422754

Diff Detail

Event Timeline

rafael updated this revision to Diff 72594.Sep 26 2016, 6:28 PM
rafael retitled this revision from to Add xxhash to llvm.
rafael updated this object.
rafael added reviewers: ruiu, emaste.
rafael added a subscriber: llvm-commits.
davide added a subscriber: davide.Sep 26 2016, 6:34 PM

Can you add a couple of tests?

llvm/tools/llvm-xxhash/CMakeLists.txt
2

Can you double check this works with SHARED_LIBS?

llvm/tools/llvm-xxhash/llvm-xxhash.cpp
2

hmm, typo?

21

print argv[0] while you're here? or usage?

rafael updated this revision to Diff 72645.Sep 27 2016, 6:39 AM

Added tests and checked shared library build.

I don't think there is much value committing llvm-xxhash, it was just a handy tool for testing and profiling when starting, so I added a unit test.

davide accepted this revision.Sep 27 2016, 8:26 AM
davide added a reviewer: davide.

LGTM assuming you remove the tool.

This revision is now accepted and ready to land.Sep 27 2016, 8:26 AM
rafael closed this revision.Sep 27 2016, 8:57 AM