Make the hashing algorithm Endian neutral. This is a bit annoying, but
authorChandler Carruth <chandlerc@gmail.com>
Fri, 2 Mar 2012 11:16:10 +0000 (11:16 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Fri, 2 Mar 2012 11:16:10 +0000 (11:16 +0000)
commitdc62a9069648e86846f9f5a8eed7ad29de6f4163
tree3856cad701003a52a575130ecec6d91ab7fb5bfb
parent1c1448984d43f1f02c0235d35ebe8460c9b57afd
Make the hashing algorithm Endian neutral. This is a bit annoying, but
folks who know something about PPC tell me that the byte swap is crazy
fast and without this the bit mixture would actually be different. It
might not be worse, but I've not measured it and so I'd rather not trust
it. This way, the algorithm is identical on both endianness hosts. I'll
look into any performance issues etc stemming from this.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@151892 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ADT/Hashing.h