From d88d7166a80060ff3bbd4acc598abd1495765413 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Wed, 14 Sep 2016 11:32:57 +0000 Subject: [PATCH] Use murmurhash2 instead of fnv. It is substantially faster by processing 8 bytes at a time. llvm-svn: 281454 --- lld/ELF/Config.h | 2 +- lld/ELF/Driver.cpp | 2 +- lld/ELF/OutputSections.cpp | 65 ++++++++++++++++++++++++++++++++++++++-------- lld/ELF/OutputSections.h | 5 ++-- lld/ELF/Writer.cpp | 4 +-- 5 files changed, 61 insertions(+), 17 deletions(-) diff --git a/lld/ELF/Config.h b/lld/ELF/Config.h index 410d910..b182b77 100644 --- a/lld/ELF/Config.h +++ b/lld/ELF/Config.h @@ -31,7 +31,7 @@ enum ELFKind { }; // For --build-id. -enum class BuildIdKind { None, Fnv1, Md5, Sha1, Hexstring, Uuid }; +enum class BuildIdKind { None, Fast, Md5, Sha1, Hexstring, Uuid }; // For --discard-{all,locals,none}. enum class DiscardPolicy { Default, All, Locals, None }; diff --git a/lld/ELF/Driver.cpp b/lld/ELF/Driver.cpp index a741b67..8f5f543c 100644 --- a/lld/ELF/Driver.cpp +++ b/lld/ELF/Driver.cpp @@ -472,7 +472,7 @@ void LinkerDriver::readConfigs(opt::InputArgList &Args) { // Parse --build-id or --build-id=