re PR tree-optimization/78482 (wrong code at -O3 in both 32-bit and 64-bit modes...
authorRichard Biener <rguenther@suse.de>
Wed, 23 Nov 2016 14:25:48 +0000 (14:25 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 23 Nov 2016 14:25:48 +0000 (14:25 +0000)
commitcbb88345e10ffb70e289408303c58aa01b1a059c
tree3ca6d267955784f9df891b67f002317e654d40c1
parentabe405742f6e61756e3e8b08a8bcbc28b482a5ef
re PR tree-optimization/78482 (wrong code at -O3 in both 32-bit and 64-bit modes on x86_64-linux-gnu)

2016-11-23  Richard Biener  <rguenther@suse.de>

PR tree-optimization/78482
* tree-cfgcleanup.c: Include tree-ssa-loop-niter.h.
(remove_forwarder_block_with_phi): When merging with a loop
header creates a new latch reset number of iteration information
of the loop.

* gcc.dg/torture/pr78482.c: New testcase.

From-SVN: r242754
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr78482.c [new file with mode: 0644]
gcc/tree-cfgcleanup.c