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 | 6f8d4ae3c0c8566d0b0384e40f160cddd3c8bb2a (patch) | |
tree | c1bcb1680c5c570378b7ea1d9af528e20bf102b5 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 491f9e89ae154fdf24fd2dc743d83397a2b89b04 (diff) | |
download | bcm5719-llvm-6f8d4ae3c0c8566d0b0384e40f160cddd3c8bb2a.tar.gz bcm5719-llvm-6f8d4ae3c0c8566d0b0384e40f160cddd3c8bb2a.zip |
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.
llvm-svn: 65776
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions