Simplify RecursivelyDeleteDeadPHINode. The only functionality change
authorDuncan Sands <baldrick@free.fr>
Mon, 21 Feb 2011 16:27:36 +0000 (16:27 +0000)
committerDuncan Sands <baldrick@free.fr>
Mon, 21 Feb 2011 16:27:36 +0000 (16:27 +0000)
commitb4098ba03d51a3845bde5aeb4fca893d1a90d3f8
tree2f4aa914786c6ab1b77095cd51700726d0b6aa73
parentd64cfe1506daf95483549e7347098fbf1a978097
Simplify RecursivelyDeleteDeadPHINode.  The only functionality change
should be that if the phi is used by a side-effect free instruction with
no uses then the phi and the instruction now get zapped (checked by the
unittest).

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