2018-01-09 Richard Biener <rguenther@suse.de>
commitfdcf2b70e0c8c1a41616fa719cdad27b93cd0441
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 9 Jan 2018 13:35:43 +0000 (9 13:35 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 9 Jan 2018 13:35:43 +0000 (9 13:35 +0000)
tree87bc765c4b2faf45547a43111b2ab530ff3bfad8
parent38f4caae0c95ee6d767213ddc3c09d7e3b224cae
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.

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