re PR middle-end/90796 (GCC: O2 vs O3 output differs on simple test)
authorMichael Matz <matz@suse.de>
Tue, 22 Oct 2019 12:25:03 +0000 (12:25 +0000)
committerMichael Matz <matz@gcc.gnu.org>
Tue, 22 Oct 2019 12:25:03 +0000 (12:25 +0000)
commit92781ff1da896b2f92b1dcc06953be493371bf21
treedc1d1782a0e0eb5a953e17ec69cebac7ecb7c6d7
parent9107d6526b938eba8168025c0d90d06ad3634e69
re PR middle-end/90796 (GCC: O2 vs O3 output differs on simple test)

Fix PR middle-end/90796

        PR middle-end/90796
        * gimple-loop-jam.c (any_access_function_variant_p): New function.
        (adjust_unroll_factor): Use it to constrain safety, new parameter.
        (tree_loop_unroll_and_jam): Adjust call and profitable unroll factor.

testsuite/
        * gcc.dg/unroll-and-jam.c: Add three invalid and one valid case.

From-SVN: r277287
gcc/ChangeLog
gcc/gimple-loop-jam.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/unroll-and-jam.c