commit | d67ab454db043eab95573c64f35022fd7438435d | [log] [tgz] |
---|---|---|
author | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | Thu Feb 16 05:56:57 2017 +0100 |
committer | Christopher Li <sparse@chrisli.org> | Thu Feb 16 20:43:05 2017 +0800 |
tree | 34d165a20a25c97963bb3f8acb83aa0113f11c75 | |
parent | a01240e7e357b19b1ab6511406d03058c71e0de4 [diff] |
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>