]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR ipa/68672 (g++.dg/torture/pr68470.C: ICE: cannot update SSA form: statement...
authorJakub Jelinek <jakub@redhat.com>
Fri, 12 Feb 2016 11:57:54 +0000 (12:57 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 12 Feb 2016 11:57:54 +0000 (12:57 +0100)
commitb69539cbf58a1d0c918759dc12cf384922661753
tree0bcf65910d9496d9b5e0acf1f0a34f108d659735
parent4c707980691c4f1e52c41fac391d60dedd325633
re PR ipa/68672 (g++.dg/torture/pr68470.C: ICE: cannot update SSA form: statement uses released SSA name)

PR ipa/68672
* ipa-split.c (split_function): Don't compute/use main_part_return_p.
Compute retval and retbnd early in all cases if split_part_return_p
and return_bb is not EXIT.  Remove all clobber stmts and reset
all debug stmts that refer to SSA_NAMEs defined in split part,
except if it is retval, in that case replace the old retval with the
lhs of the call to the split part.

* g++.dg/ipa/pr68672-1.C: New test.
* g++.dg/ipa/pr68672-2.C: New test.
* g++.dg/ipa/pr68672-3.C: New test.

From-SVN: r233374
gcc/ChangeLog
gcc/ipa-split.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ipa/pr68672-1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/ipa/pr68672-2.C [new file with mode: 0644]
gcc/testsuite/g++.dg/ipa/pr68672-3.C [new file with mode: 0644]