forked from OSchip/llvm-project
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> llvm-svn: 266700
This commit is contained in:
parent
de16b44f74
commit
7212c5d82c
|
@ -557,7 +557,7 @@ private:
|
|||
return ConstantClassInfo::getTombstoneKey();
|
||||
}
|
||||
static unsigned getHashValue(const ConstantClass *CP) {
|
||||
SmallVector<Constant *, 8> Storage;
|
||||
SmallVector<Constant *, 32> Storage;
|
||||
return getHashValue(LookupKey(CP->getType(), ValType(CP, Storage)));
|
||||
}
|
||||
static bool isEqual(const ConstantClass *LHS, const ConstantClass *RHS) {
|
||||
|
|
Loading…
Reference in New Issue