re PR tree-optimization/79088 (wrong code at -O2 on x86_64-linux-gnu)
authorRichard Biener <rguenther@suse.de>
Mon, 23 Jan 2017 22:29:17 +0000 (22:29 +0000)
committerJeff Law <law@gcc.gnu.org>
Mon, 23 Jan 2017 22:29:17 +0000 (15:29 -0700)
commit108fdd6d848eb083021de4a43f3e682fa7babbf3
treeabeeed22e3f2d4c6218cc99541dddd430b990a67
parent01f26e0e1f69a8462e20a44eb9f15ae9c1b541fe
re PR tree-optimization/79088 (wrong code at -O2 on x86_64-linux-gnu)

2017-01-23  Richard Biener  <rguenther@suse.de>

PR tree-optimization/79088
PR tree-optimization/79188
* tree-ssa-threadupdate.c (mark_threaded_blocks): Move code
resetting loop bounds after last path deletion.  Reset loop
bounds of the target loop, make code match the comments.
* tree-ssa-threadbackwards.c (pass_early_thread_jumps::execute):
Make sure loops need no fixups.

* gcc.dg/torture/pr79088.c: New testcase.
* gcc.dg/torture/pr79188.c: Likewise.

From-SVN: r244837
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr79088.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/torture/pr79188.c [new file with mode: 0644]
gcc/tree-ssa-threadbackward.c
gcc/tree-ssa-threadupdate.c