Chris Lattner 36ba5006df Implement a refinement to the mem2reg algorithm for cases where an alloca
has a single def.  In this case, look for uses that are dominated by the def
and attempt to rewrite them to directly use the stored value.

This speeds up mem2reg on these values and reduces the number of phi nodes
inserted.  This should address PR665.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24411 91177308-0d34-0410-b5e6-96231b3b80d8
2005-11-18 07:31:42 +00:00
..
2005-04-21 23:48:37 +00:00
2005-04-21 23:48:37 +00:00
2005-04-21 23:48:37 +00:00
2005-10-27 16:34:00 +00:00
2005-04-21 23:48:37 +00:00
2005-04-21 23:48:37 +00:00
2005-04-21 23:48:37 +00:00
2005-04-21 23:48:37 +00:00
2005-04-21 23:48:37 +00:00