fix clear_phi(), replace it by kill_instruction()
commitd67ab454db043eab95573c64f35022fd7438435d
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>
Thu, 16 Feb 2017 04:56:57 +0000 (16 05:56 +0100)
committerChristopher Li <sparse@chrisli.org>
Thu, 16 Feb 2017 12:43:05 +0000 (16 20:43 +0800)
tree34d165a20a25c97963bb3f8acb83aa0113f11c75
parenta01240e7e357b19b1ab6511406d03058c71e0de4
fix clear_phi(), replace it by kill_instruction()

clear_phi() only replaces a phi-node's sources by VOID
without adjusting the usage of these sources.
As such it can't be used for cleaning things before
removing an OP_PHI.

Fix this by replacing calls to clear_phi() by calls
to kill_instruction().

Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Signed-off-by: Christopher Li <sparse@chrisli.org>
simplify.c