Dan Gohman a79cce4aef Previously, RecursivelyDeleteDeadInstructions provided an option
of returning a list of pointers to Values that are deleted. This was
unsafe, because the pointers in the list are, by nature of what
RecursivelyDeleteDeadInstructions does, always dangling. Replace this
with a simple callback mechanism. This may eventually be removed if
all clients can reasonably be expected to use CallbackVH.

Use this to factor out the dead-phi-cycle-elimination code from LSR
utility function, and generalize it to use the
RecursivelyDeleteTriviallyDeadInstructions utility function.

This makes LSR more aggressive about eliminating dead PHI cycles;
adjust tests to either be less trivial or to simply expect fewer
instructions.

llvm-svn: 70636
2009-05-02 18:29:22 +00:00
..
2009-04-29 00:15:41 +00:00
2009-04-29 06:46:27 +00:00
2009-04-29 00:15:41 +00:00
2009-03-24 21:36:09 +00:00
2009-03-21 18:12:24 +00:00
2009-03-06 17:59:58 +00:00
2007-04-21 20:46:55 +00:00
2008-07-28 18:41:03 +00:00