Clean up the code a bit. Use isInstructionTriviallyDead to be more aggressive
authorChris Lattner <sabre@nondot.org>
Mon, 3 Oct 2005 23:43:43 +0000 (23:43 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 3 Oct 2005 23:43:43 +0000 (23:43 +0000)
commit7a66e686fe1406ea704e71e18cf99d4745d0b43d
treea13fb38e78973030a68b458dab95589c83860106
parent457029c244475dd6fb0f4eea1ade2436a2c1fe3c
Clean up the code a bit.  Use isInstructionTriviallyDead to be more aggressive
and more correct than use_empty().  This fixes PR635 and
SimplifyCFG/2005-10-02-InvokeSimplify.ll

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23616 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Utils/SimplifyCFG.cpp