llvm-project/llvm/lib
Mehdi Amini be8a57f9bf Adjust initial size in StringMap constructor to guarantee no grow()
Summary:
StringMap ctor accepts an initialize size, but expect it to be
rounded to the next power of 2. The ctor can handle that directly
instead of expecting clients to round it. Also, since the map will
resize itself when 75% full, take this into account an initialize
a larger initial size to avoid any growth.

Reviewers: dblaikie

Subscribers: llvm-commits

Differential Revision: http://reviews.llvm.org/D18344

From: Mehdi Amini <mehdi.amini@apple.com>
llvm-svn: 264385
2016-03-25 05:57:57 +00:00
..
Analysis IR: Reserve an MDKind for !llvm.loop; NFC 2016-03-25 00:35:38 +00:00
AsmParser IR: Stop upgrading !llvm.loop attachments via MDString 2016-03-25 00:56:13 +00:00
Bitcode Bitcode: Use std::stable_partition for reproducible builds 2016-03-25 02:20:28 +00:00
CodeGen CXX TLS: collect return blocks after SelectAllBasicBlocks. 2016-03-24 23:21:29 +00:00
DebugInfo Fix a crash in running llvm-objdump -t with an invalid Mach-O file already 2016-03-23 20:27:00 +00:00
ExecutionEngine More more change need as part of r264187 where ErrorOr<> was added 2016-03-23 21:20:16 +00:00
Fuzzer [libFuzzer] handle SIGTERM 2016-03-24 21:03:58 +00:00
IR Add GUID/getGlobalIdentifier() non-static API to global value 2016-03-25 05:57:41 +00:00
IRReader Remove autoconf support 2016-01-26 21:29:08 +00:00
LTO [ThinLTO] Renaming of function index to module summary index (NFC) 2016-03-15 00:04:37 +00:00
LibDriver Remove autoconf support 2016-01-26 21:29:08 +00:00
LineEditor Remove autoconf support 2016-01-26 21:29:08 +00:00
Linker Fix another case where we were unconditionally linking linkonce GVs. 2016-03-24 15:23:01 +00:00
MC MC: Don't access the filesystem in MCContext's constructor 2016-03-22 22:24:29 +00:00
Object Fix a crash in running llvm-objdump -t with an invalid Mach-O file already 2016-03-23 20:27:00 +00:00
ObjectYAML Forgot to commit this with r263692 2016-03-17 16:55:11 +00:00
Option Annotate dump() methods with LLVM_DUMP_METHOD, addressing Richard Smith r259192 post commit comment. 2016-01-29 20:50:44 +00:00
Passes [PM] Rename the CRTP mixin base classes for the new pass manager to 2016-03-11 10:33:22 +00:00
ProfileData Variable name cleanup /NFC 2016-03-16 22:13:41 +00:00
Support Adjust initial size in StringMap constructor to guarantee no grow() 2016-03-25 05:57:57 +00:00
TableGen [TableGen] Fix typos in comments. NFC 2016-02-26 06:50:27 +00:00
Target AMDGPU: Cost model for basic integer operations 2016-03-25 01:16:40 +00:00
Transforms [LoopStrengthReduce] Don't hoist into a catchswitch 2016-03-24 21:40:22 +00:00
CMakeLists.txt Move ObjectYAML code to a new library. 2016-03-01 19:15:06 +00:00
LLVMBuild.txt Add LLVMBuild for ObjectYAML. 2016-03-01 21:29:33 +00:00