From 7212c5d82c3d785c84f16ad1e6e4f096137b246f Mon Sep 17 00:00:00 2001 From: Mehdi Amini Date: Tue, 19 Apr 2016 00:17:55 +0000 Subject: Increase SmallVector size for ConstantUniqueMap::getHashValue() (NFC) This remove totally any malloc from this function on my profile (from 155k before). From: Mehdi Amini llvm-svn: 266700 --- llvm/lib/IR/ConstantsContext.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/IR/ConstantsContext.h') diff --git a/llvm/lib/IR/ConstantsContext.h b/llvm/lib/IR/ConstantsContext.h index 5e880905c26..7db87edff01 100644 --- a/llvm/lib/IR/ConstantsContext.h +++ b/llvm/lib/IR/ConstantsContext.h @@ -557,7 +557,7 @@ private: return ConstantClassInfo::getTombstoneKey(); } static unsigned getHashValue(const ConstantClass *CP) { - SmallVector Storage; + SmallVector Storage; return getHashValue(LookupKey(CP->getType(), ValType(CP, Storage))); } static bool isEqual(const ConstantClass *LHS, const ConstantClass *RHS) { -- cgit v1.2.3