Do final value replacement in try_create_reduction_list
authorTom de Vries <tom@codesourcery.com>
Fri, 20 Nov 2015 10:25:26 +0000 (10:25 +0000)
committerTom de Vries <vries@gcc.gnu.org>
Fri, 20 Nov 2015 10:25:26 +0000 (10:25 +0000)
commitf993a85385e262572a1be89b15976ef47227964f
tree026be2a2c3f7a62a6ab3e92dc2d14e6ac4010117
parent5b5e7b181fa56b3c2c8aef6cd421bd40852d97e9
Do final value replacement in try_create_reduction_list

2015-11-20  Tom de Vries  <tom@codesourcery.com>

PR tree-optimization/68373
* tree-scalar-evolution.c (final_value_replacement_loop): Factor out of ...
(scev_const_prop): ... here.
* tree-scalar-evolution.h (final_value_replacement_loop): Declare.
* tree-parloops.c (try_create_reduction_list): Call
final_value_replacement_loop.

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

From-SVN: r230650
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/autopar/pr68373.c [new file with mode: 0644]
gcc/tree-parloops.c
gcc/tree-scalar-evolution.c
gcc/tree-scalar-evolution.h