[CSSPGO] Fix a hash code truncating issue in ContextTrieNode.
authorHongtao Yu <hoy@fb.com>
Thu, 11 Nov 2021 17:52:41 +0000 (09:52 -0800)
committerHongtao Yu <hoy@fb.com>
Tue, 16 Nov 2021 19:01:52 +0000 (11:01 -0800)
commit042cefd2b5c7d6457ffde5a83a0464bc740b2e42
tree829a387b93edbfc7620d853e97d7d72ecf90985f
parent4c484f11d355e4293f7b245a9330f0a1e89630ac
[CSSPGO] Fix a hash code truncating issue in ContextTrieNode.

std::hash returns a 64bit hash code while previously we were using only lower 32 bits which caused hash collision for large workloads.

Reviewed By: wenlei, wlei

Differential Revision: https://reviews.llvm.org/D113688
llvm/include/llvm/Transforms/IPO/SampleContextTracker.h
llvm/lib/Transforms/IPO/SampleContextTracker.cpp