| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
llvm-svn: 120298
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
reduces the amount of malloc calls and may reduce memory overhead.
Some numbers:
ASTContext stats, clang -cc1 -disable-free -fsyntax-only Cocoa_h.m
without dynamic growth | with dynamic growth
Number of memory regions: 3158 | Number of memory regions: 432
Bytes used: 12333185 | Bytes used: 12333185
Bytes allocated: 12935168 | Bytes allocated: 12800000
Bytes wasted: 601983 (includes alignment, etc) | Bytes wasted: 466815 (includes alignment, etc)
ASTContext stats, clang -cc1 -disable-free -fsyntax-only on clang's ASTReader.cpp
without dynamic growth | with dynamic growth
Number of memory regions: 10987 | Number of memory regions: 551
Bytes used: 42910356 | Bytes used: 42910356
Bytes allocated: 45002752 | Bytes allocated: 44711936
Bytes wasted: 2092396 (includes alignment, etc) | Bytes wasted: 1801580 (includes alignment, etc)
llvm-svn: 115151
|
|
|
|
| |
llvm-svn: 101138
|
|
|
|
|
|
|
| |
We have some code in llvm and clang where a BumpPtrAllocator is declared in a
class but never used in the common case. Stop wasting memory there.
llvm-svn: 101130
|
|
|
|
|
|
|
| |
only a single type of object to be allocated. Use it to make VNInfo destruction
typesafe.
llvm-svn: 99919
|
|
|
|
| |
llvm-svn: 99883
|
|
|
|
| |
llvm-svn: 99882
|
|
|
|
|
|
|
|
|
|
| |
on all objects it has allocated, if they are all of the same size and alignment.
Use this to destruct all VNInfos allocated in LiveIntervalAnalysis (PR6653).
valnos is not reliable for this purpose, as seen in r99400
(which still leaked, and sometimes caused double frees).
llvm-svn: 99881
|
|
|
|
|
|
| |
on the build bots.
llvm-svn: 93606
|
|
|
|
|
|
| |
initialization time. This removes one of the 'init_constructors' reported in <rdar://problem/7545356>.
llvm-svn: 93581
|
|
|
|
|
|
| |
direct inclusion edge from System to Support.
llvm-svn: 85086
|
|
|
|
| |
llvm-svn: 81308
|
|
|
|
|
|
| |
values. Hopefully this fixes PR4622.
llvm-svn: 77088
|
|
|
|
| |
llvm-svn: 76943
|
|
|
|
|
|
| |
an off-by-one error.
llvm-svn: 76891
|
|
|
|
|
|
| |
build failure involving memset.
llvm-svn: 76838
|
|
|
|
| |
llvm-svn: 76837
|
|
|
|
|
|
|
|
|
|
|
| |
malloc, so there should be no functional changes to other code.
These changes are necessary since I have plans to use this allocator in the JIT
memory manager, and it needs a special allocator.
I also added some tests which helped me pinpoint some bugs.
llvm-svn: 76825
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
a new ilist_node class, and remove them. Unlike alist_node,
ilist_node doesn't attempt to manage storage itself, so it avoids
the associated problems, including being opaque in gdb.
Adjust the Recycler class so that it doesn't depend on alist_node.
Also, change it to use explicit Size and Align parameters, allowing
it to work when the largest-sized node doesn't have the greatest
alignment requirement.
Change MachineInstr's MachineMemOperand list from a pool-backed
alist to a std::list for now.
llvm-svn: 54146
|
|
|
|
|
|
|
|
| |
for handling bookkeeping for deleted objects, as well as the alist class
template, for keeping lists of objects allocated from Recyclers, and some
related utilities.
llvm-svn: 53210
|
|
|
|
| |
llvm-svn: 50659
|
|
|
|
|
|
|
| |
be truncated to 32 bits. This fixes the recent Benchmarks/McCat/09-vor
regression on x86-64, among other things.
llvm-svn: 50372
|
|
|
|
|
|
| |
alignment. "Bump" of the pointer for the next allocated object to be of the specified alignment.
llvm-svn: 50362
|
|
|
|
| |
llvm-svn: 45418
|
|
|
|
|
|
| |
first region, just deallocate all but the last region in the list.
llvm-svn: 41782
|
|
|
|
|
|
| |
same as right after ctor.
llvm-svn: 41728
|
|
|
|
| |
llvm-svn: 34539
|
|
|
|
| |
llvm-svn: 32340
|
|
|
|
|
|
| |
now cerr, cout, and NullStream resp.
llvm-svn: 32298
|
|
|
|
| |
llvm-svn: 31927
|
|
|
|
|
|
| |
This fixes the build on OpenBSD and potentially other systems.
llvm-svn: 31550
|
|
I'm about to add. This is similar to, but necessarily different than, the
STL allocator class.
llvm-svn: 31285
|