bb-reorder.c (find_traces_1_round): Fix off-by-one index.
authorEric Botcazou <ebotcazou@adacore.com>
Fri, 27 Oct 2017 22:55:59 +0000 (22:55 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Fri, 27 Oct 2017 22:55:59 +0000 (22:55 +0000)
commiteada55b96e64a1a1e4a3404b476b3d3d87cc5962
tree1dda6ae9f1e1af4129bd2bc3bd46cb3ccbc13713
parenta3123cd86744bf7de1ee3a160f58824fd741a859
bb-reorder.c (find_traces_1_round): Fix off-by-one index.

* 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.

From-SVN: r254188
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]