author | Benjamin Kramer <benny.kra@googlemail.com> | |
Fri, 5 Dec 2014 17:03:01 +0000 (17:03 +0000) | ||
committer | Benjamin Kramer <benny.kra@googlemail.com> | |
Fri, 5 Dec 2014 17:03:01 +0000 (17:03 +0000) | ||
commit | 472e9cc4bc13da0d9acfb4bdd2529029d8a4dbf4 | |
tree | d84a94b447da18961505df55451e976526e09d25 | tree | snapshot (tar.xz tar.gz zip) |
parent | 3ad762170b8c0d9ec0ac066a29fe571264c2e69e | commit | diff |
LLVMContext: Store APInt/APFloat directly into the ConstantInt/FP DenseMaps.
Required some APInt massaging to get proper empty/tombstone values. Apart
from making the code a bit simpler this also reduces the bucket size of
the ConstantInt map from 32 to 24 bytes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@223478 91177308-0d34-0410-b5e6-96231b3b80d8
Required some APInt massaging to get proper empty/tombstone values. Apart
from making the code a bit simpler this also reduces the bucket size of
the ConstantInt map from 32 to 24 bytes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@223478 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ADT/APInt.h | diff | blob | history | |
lib/IR/Constants.cpp | diff | blob | history | |
lib/IR/LLVMContextImpl.h | diff | blob | history |