OSDN Git Service

PR tree-optimization/46099
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 5 Nov 2010 11:15:28 +0000 (11:15 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 5 Nov 2010 11:15:28 +0000 (11:15 +0000)
commitad57283e6aeefab1a9ca1508bc5d5e27165695bb
tree497bf216ccc6089f923a3ccd4a77deee89c2538a
parentc246fb4f62d4e078e0f0156b2da447c91c7df27f
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@166355 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/autopar/pr46099.c [new file with mode: 0644]
gcc/tree-parloops.c