diff options
author | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-09-02 13:42:25 +0000 |
---|---|---|
committer | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-09-02 13:42:25 +0000 |
commit | 904ad591de1ac152a15a5cf51180161dd219e8a4 (patch) | |
tree | 2062b2e79347ee7aef4b50126b55c744f471fe1a /gcc/ipa-split.c | |
parent | 3518a35bd7ec7b616357bac243f1413ec1f0acb8 (diff) | |
download | gcc-904ad591de1ac152a15a5cf51180161dd219e8a4.tar.gz |
2010-09-02 Richard Guenther <rguenther@suse.de>
PR tree-optimization/44937
PR tree-optimization/45412
* ipa-split.c (split_function): Properly remove PHI nodes.
* g++.dg/opt/pr45412.C: New testcase.
* gcc.c-torture/compile/pr45412.c: Likewise.
* gcc.c-torture/compile/pr44937.c: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@163775 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ipa-split.c')
-rw-r--r-- | gcc/ipa-split.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/ipa-split.c b/gcc/ipa-split.c index 712fbf5cb99..56f689babf3 100644 --- a/gcc/ipa-split.c +++ b/gcc/ipa-split.c @@ -993,8 +993,8 @@ split_function (struct split_point *split_point) { gimple stmt = gsi_stmt (gsi); gcc_assert (!is_gimple_reg (gimple_phi_result (stmt))); - mark_sym_for_renaming (SSA_NAME_VAR (PHI_RESULT (stmt))); - gsi_remove (&gsi, false); + mark_virtual_phi_result_for_renaming (stmt); + remove_phi_node (&gsi, true); } } /* When we pass aorund the value, use existing return block. */ |