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)
commitf8caa285171ac000827b4ef52d16bc6331425ed9
tree7f39250d036690e4b3aa16fc91a6579c38776a8e
parent324ed20dcd6ecbd9f394e817745288b7451edb7b
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.

llvm-svn: 223478
llvm/include/llvm/ADT/APInt.h
llvm/lib/IR/Constants.cpp
llvm/lib/IR/LLVMContextImpl.h