Replace the old ADCE implementation with a new one that more simply solves
authorOwen Anderson <resistor@mac.com>
Thu, 29 May 2008 08:45:13 +0000 (08:45 +0000)
committerOwen Anderson <resistor@mac.com>
Thu, 29 May 2008 08:45:13 +0000 (08:45 +0000)
commit038a8746c96f2290c3e7127883b00fafb223b799
tree12d9bb821fab51c14ed8c31b95761797b4a531ba
parentf26ffe987cf3643a7bd66bd9f97c34605ba7d08e
Replace the old ADCE implementation with a new one that more simply solves
the one case that ADCE catches that normal DCE doesn't: non-induction variable
loop computations.

This implementation handles this problem without using postdominators.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51668 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/ADCE.cpp
test/Transforms/ADCE/2003-12-19-MergeReturn.ll [deleted file]
test/Transforms/ADCE/dead-phi-edge.ll [deleted file]