]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/tree-parloops.c
re PR tree-optimization/46099 (ICE: in replace_ssa_name, at tree-cfg.c:5643 with...
authorJakub Jelinek <jakub@redhat.com>
Fri, 5 Nov 2010 11:15:28 +0000 (12:15 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 5 Nov 2010 11:15:28 +0000 (12:15 +0100)
commitcba1eb614cc73d9cb6b84754e1b746c1c3c32169
tree497bf216ccc6089f923a3ccd4a77deee89c2538a
parent502c50846ce1ee2c46022fe2f004c19b7ea42314
re PR tree-optimization/46099 (ICE: in replace_ssa_name, at tree-cfg.c:5643 with -ftree-parallelize-loops -g)

PR tree-optimization/46099
* tree-parloops.c (take_address_of): Add GSI argument.  Return NULL
if it is NULL and uid wasn't found in the hash table.  Just fold the
result if it is NULL otherwise.  Insert other potentially needed
stmts right before current stmt instead of on the entry edge.
(struct elv_data): Add gsi and reset fields.
(eliminate_local_variables_1): Adjust caller.  If take_address_of
failed for debug stmt, set dta->reset and return.
(eliminate_local_variables_stmt): Change STMT argument for GSI,
pass GSI through to the callback, handle resetting of debug stmts.
(eliminate_local_variables): Adjust caller.  Process debug stmts
in second phase.

* gcc.dg/autopar/pr46099.c: New test.

From-SVN: r166355
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/autopar/pr46099.c [new file with mode: 0644]
gcc/tree-parloops.c