summaryrefslogtreecommitdiffstats
path: root/llvm/lib/IR/ConstantsContext.h
diff options
context:
space:
mode:
authorMehdi Amini <mehdi.amini@apple.com>2016-04-19 00:17:55 +0000
committerMehdi Amini <mehdi.amini@apple.com>2016-04-19 00:17:55 +0000
commit7212c5d82c3d785c84f16ad1e6e4f096137b246f (patch)
treeaa14c616696453084dfb0b1cd34251688cfbf3b5 /llvm/lib/IR/ConstantsContext.h
parentde16b44f74810286e2ff37c0c3ccdf053b689f30 (diff)
downloadbcm5719-llvm-7212c5d82c3d785c84f16ad1e6e4f096137b246f.tar.gz
bcm5719-llvm-7212c5d82c3d785c84f16ad1e6e4f096137b246f.zip
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
Diffstat (limited to 'llvm/lib/IR/ConstantsContext.h')
-rw-r--r--llvm/lib/IR/ConstantsContext.h2
1 files changed, 1 insertions, 1 deletions
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<Constant *, 8> Storage;
+ SmallVector<Constant *, 32> Storage;
return getHashValue(LookupKey(CP->getType(), ValType(CP, Storage)));
}
static bool isEqual(const ConstantClass *LHS, const ConstantClass *RHS) {
OpenPOWER on IntegriCloud