llvm.org GIT mirror llvm / c3a95b9
Increase SmallVector size for ConstantUniqueMap::getHashValue() (NFC) This remove totally any malloc from this function on my profile (from 155k before). From: Mehdi Amini <mehdi.amini@apple.com> git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@266700 91177308-0d34-0410-b5e6-96231b3b80d8 Mehdi Amini 4 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
556556 return ConstantClassInfo::getTombstoneKey();
557557 }
558558 static unsigned getHashValue(const ConstantClass *CP) {
559 SmallVector8> Storage;
559 SmallVector32> Storage;
560560 return getHashValue(LookupKey(CP->getType(), ValType(CP, Storage)));
561561 }
562562 static bool isEqual(const ConstantClass *LHS, const ConstantClass *RHS) {