aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorserge-sans-paille <sguelton@redhat.com>2020-05-14 07:23:10 +0200
committerserge-sans-paille <sguelton@redhat.com>2020-05-25 17:17:29 +0200
commit7c298c104bfe725d4315926a656263e8a5ac3054 (patch)
tree79ef984bfe497cd0e517d9b4c3f26f75b4ed57ca /clang/lib/Frontend/CompilerInvocation.cpp
parent3c6c2ecd6efa393e7a8422d88e5d4ada0970e47e (diff)
downloadllvm-7c298c104bfe725d4315926a656263e8a5ac3054.zip
llvm-7c298c104bfe725d4315926a656263e8a5ac3054.tar.gz
llvm-7c298c104bfe725d4315926a656263e8a5ac3054.tar.bz2
[PGO] Fix computation of function Hash
Previous implementation was incorrectly passing an uint64_t, that got converted to an uint8_t, to finalize the hash computation. This led to different functions having the same hash if they only differ by the remaining statements, which is incorrect. Added a new test case that trivially tests that a small function change is reflected in the hash value. Not that as this patch fixes the hash computation, it invalidates all hashes computed before that patch applies, which could be an issue for large build system that pre-compute the profile data and let client download them as part of the build process. Differential Revision: https://reviews.llvm.org/D79961
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions