llvm-mirror/lib/Transforms
Chris Lattner 17afc211e7 Rewrite all the 'PromoteLocallyUsedAlloca[s]' logic. With the power of
LargeBlockInfo, we can now dramatically simplify their implementation
and speed them up at the same time.  Now the code has time proportional
to the number of uses of the alloca, not the size of the block.

This also eliminates code that tried to batch up different allocas which
are used in the same blocks, and eliminates the 'retry list' logic which
was baroque and no unneccesary.  In addition to being a speedup for crazy
cases, this is also a nice cleanup:

PromoteMemoryToRegister.cpp |  270 +++++++++++++++-----------------------------
 1 file changed, 96 insertions(+), 174 deletions(-)

llvm-svn: 58229
2008-10-27 07:05:53 +00:00
..
Hello Initial support for the CMake build system. 2008-09-22 01:08:49 +00:00
Instrumentation Use Function::getEntryBlock() instead of Function::front(), for clarity. 2008-10-21 03:10:28 +00:00
IPO Fix a bug that prevented llvm-extract -delete from working. 2008-10-21 01:08:07 +00:00
Scalar Add value range analyzing of Add and Sub. 2008-10-24 04:00:26 +00:00
Utils Rewrite all the 'PromoteLocallyUsedAlloca[s]' logic. With the power of 2008-10-27 07:05:53 +00:00
Makefile remove attribution from lib Makefiles. 2007-12-29 20:09:26 +00:00