re PR tree-optimization/87074 (Unroll and jam bug: O3 result differ from O2)
authorMichael Matz <matz@suse.de>
Sat, 1 Sep 2018 17:22:05 +0000 (17:22 +0000)
committerMichael Matz <matz@gcc.gnu.org>
Sat, 1 Sep 2018 17:22:05 +0000 (17:22 +0000)
commit395552b520063d9a372ed5ed5122db15680b0616
treefb685a96978423effc2e4937c08ad0c534bb156b
parentc8a4f039fc6333507025e5b07a388c504b3dfcb1
re PR tree-optimization/87074 (Unroll and jam bug: O3 result differ from O2)

Fix PR87074

PR tree-optimization/87074
* gimple-loop-jam.c (unroll_jam_possible_p): Check loop exit
PHIs for outer-loop uses.

testsuite/
* gcc.dg/pr87074.c: New test.

From-SVN: r264029
gcc/ChangeLog
gcc/gimple-loop-jam.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr87074.c [new file with mode: 0644]