Use RecursivelyDeleteTriviallyDeadInstructions in EliminateIVComparisons,
authorDan Gohman <gohman@apple.com>
Mon, 12 Apr 2010 07:29:15 +0000 (07:29 +0000)
committerDan Gohman <gohman@apple.com>
Mon, 12 Apr 2010 07:29:15 +0000 (07:29 +0000)
commitdd842e34c8e133e3d36418c0d351034db52a05a7
tree3a6bb47520bcdb0d3bcbbbece0d8a709289ae5f8
parent09010a30fdb58426fc06c5c97956db35dcd90979
Use RecursivelyDeleteTriviallyDeadInstructions in EliminateIVComparisons,
instead of deleting just the user. This makes it more consistent with
other code in IndVarSimplify, and theoretically can eliminate more users
earlier.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101027 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/IndVarSimplify.cpp