* bb-reorder.c (find_traces_1_round): Fix off-by-one index.
commit58767674244666a2c8500281abbdd4ce0da75b32
authorebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 27 Oct 2017 22:55:59 +0000 (27 22:55 +0000)
committerebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 27 Oct 2017 22:55:59 +0000 (27 22:55 +0000)
tree1dda6ae9f1e1af4129bd2bc3bd46cb3ccbc13713
parent96e737056e1163560fe7352e401f6a383a4af9fa
* bb-reorder.c (find_traces_1_round): Fix off-by-one index.
Move comment around.  Do not reset best_edge for a copiable
destination if the copy would cause a partition change.
(better_edge_p): Remove redundant check.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@254188 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/bb-reorder.c
gcc/testsuite/ChangeLog
gcc/testsuite/gnat.dg/opt68.adb [new file with mode: 0644]
gcc/testsuite/gnat.dg/opt68.ads [new file with mode: 0644]