On 04/06/15 10:28, Tom de Vries wrote: >> I'm ok with the patch and count on you to fix eventual fallout ;) >> > > Great, will do. And here is the fallout: * PR66442 - [6 regression] FAIL: gcc.dg/autopar/pr46885.c (test for excess errors) There are two problems in try_transform_to_exit_first_loop_alt: 1. In case the latch is not a singleton bb, the function should return false rather than true. 2. The check for singleton bb should ignore debug-insns. Attached patch fixes these problems. Bootstrapped and reg-tested on x86_64. Verified by Andreas to fix the problem on m68k. OK for trunk? Thanks, - Tom