re PR tree-optimization/83323 (186.crafty miscompares)
authorMichael Matz <matz@suse.de>
Fri, 8 Dec 2017 17:41:58 +0000 (17:41 +0000)
committerMichael Matz <matz@gcc.gnu.org>
Fri, 8 Dec 2017 17:41:58 +0000 (17:41 +0000)
commitdc236397e4d96647c5d72fd9b6d503ca0b187bee
tree8625f7c609a77a4bd2a6ce6d24c8844af0a66513
parent450aa0ee3d0f65be4288e8355d8923db5915baa6
re PR tree-optimization/83323 (186.crafty miscompares)

Fix PR83323

* gimple-loop-jam (unroll_jam_possible_p): Correct test for
head-controlled loops and loop BBs.
* common.opt (funroll-and-jam): Remove, instead ...
(floop-unroll-and-jam): ... reuse this option.
* opts.c (default_options_table): Use OPT_floop_unroll_and_jam.
* doc/invoke.texi (-funroll-and-jam): Move docu to ...
(-floop-unroll-and-jam): ... this option.

testsuite/
* gcc.dg/pr83323.c: New test.
* gcc.dg/unroll-and-jam.c: Use -floop-unroll-and-jam.

From-SVN: r255514
gcc/ChangeLog
gcc/common.opt
gcc/doc/invoke.texi
gcc/gimple-loop-jam.c
gcc/opts.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr83323.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/unroll-and-jam.c