diff options
author | Gabor Greif <ggreif@gmail.com> | 2009-03-01 16:38:10 +0000 |
---|---|---|
committer | Gabor Greif <ggreif@gmail.com> | 2009-03-01 16:38:10 +0000 |
commit | 4d3afb6592d52b29aa6804ac4ab08f79665ea4a4 (patch) | |
tree | caa4ebd3eb34a8b9cb748678a375678798e9f0d0 /CMakeLists.txt | |
parent | 7f74e8eb38c65e46b788eb6898db0b78b8314e99 (diff) | |
download | external_llvm-4d3afb6592d52b29aa6804ac4ab08f79665ea4a4.zip external_llvm-4d3afb6592d52b29aa6804ac4ab08f79665ea4a4.tar.gz external_llvm-4d3afb6592d52b29aa6804ac4ab08f79665ea4a4.tar.bz2 |
Reuse a technique (pioneered for BasicBlocks) of superposing ilist with
its sentinel. This is quite a win when a function really has a basic block.
When the function is just a declaration (and stays so) the old way did not
allocate a sentinel. So this change is most beneficial when the ratio of
function definition to declaration is high. I.e. linkers etc. Incidentally
these are the most resource demanding applications, so I expect that the
reduced malloc traffic, locality and space savings outweigh the cost of
addition of two pointers to Function.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65776 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'CMakeLists.txt')
0 files changed, 0 insertions, 0 deletions