re PR tree-optimization/83668 (wrong code with -O -fno-tree-dominator-opts -fgraphite...
authorRichard Biener <rguenther@suse.de>
Tue, 9 Jan 2018 13:35:43 +0000 (13:35 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 9 Jan 2018 13:35:43 +0000 (13:35 +0000)
commit82c066f587fe99cc3d5cd0d685582f0272d3a40f
tree87bc765c4b2faf45547a43111b2ab530ff3bfad8
parente96a5786c75a9fb7c1720a0a4860e990bcc830bf
re PR tree-optimization/83668 (wrong code with -O -fno-tree-dominator-opts -fgraphite-identity)

2018-01-09  Richard Biener  <rguenther@suse.de>

PR tree-optimization/83668
* graphite.c (canonicalize_loop_closed_ssa): Add edge argument,
move prologue...
(canonicalize_loop_form): ... here, renamed from ...
(canonicalize_loop_closed_ssa_form): ... this and amended to
swap successor edges for loop exit blocks to make us use
the RPO order we need for initial schedule generation.

* gcc.dg/graphite/pr83668.c: New testcase.

From-SVN: r256381
gcc/ChangeLog
gcc/graphite.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/graphite/pr83668.c [new file with mode: 0644]