re PR tree-optimization/80549 (wrong code at -O2 and -O3 in both 32-bit and 64-bit...
authorRichard Biener <rguenther@suse.de>
Tue, 2 May 2017 11:24:52 +0000 (11:24 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 2 May 2017 11:24:52 +0000 (11:24 +0000)
commite7d70c6c3bccb2a1abed2683d436423cc5484704
treee56c29c23fc33760f44125bb7e3dfbcb3cb8fffa
parent51956afe2766a248dc0c876f4140d7a79009cf5a
re PR tree-optimization/80549 (wrong code at -O2 and -O3 in both 32-bit and 64-bit modes on x86_64-linux-gnu (executable does not terminate))

2017-05-02  Richard Biener  <rguenther@suse.de>

PR tree-optimization/80549
* tree-cfgcleanup.c (mfb_keep_latches): New helper.
(cleanup_tree_cfg_noloop): Create forwarders to known loop
headers if they do not have a preheader.

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

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