use kill_instruction() when killing an OP_PHI during CSE
commit75d548d5b14d492432fcac1a6dc29c07f57faaac
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>
Thu, 16 Feb 2017 04:57:06 +0000 (16 05:57 +0100)
committerChristopher Li <sparse@chrisli.org>
Thu, 16 Feb 2017 12:43:11 +0000 (16 20:43 +0800)
tree2fc6da12ba471e127c175db8edca55e8f7dbecfc
parent700ab906a3842184cf48031a575341e4aae6efb4
use kill_instruction() when killing an OP_PHI during CSE

cse_one_instruction() contains some code to be executed when
an OP_PHI is eliminated. This code is roughly equivalent to
what is done in kill_instruction() for OP_PHI but not complete
since it doesn't recursively try to kill others instructions
which are used only by this OP_PHI.

Fix this and avoid duplicated code by replacing this code by
a call to kill_instruction().

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