OSDN Git Service

LLVMContext: Store APInt/APFloat directly into the ConstantInt/FP DenseMaps.
authorBenjamin Kramer <benny.kra@googlemail.com>
Fri, 5 Dec 2014 17:03:01 +0000 (17:03 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Fri, 5 Dec 2014 17:03:01 +0000 (17:03 +0000)
commit472e9cc4bc13da0d9acfb4bdd2529029d8a4dbf4
treed84a94b447da18961505df55451e976526e09d25
parent3ad762170b8c0d9ec0ac066a29fe571264c2e69e
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
include/llvm/ADT/APInt.h
lib/IR/Constants.cpp
lib/IR/LLVMContextImpl.h