------- Comment #3 from rguenth at gcc dot gnu dot org 2006-04-27 11:05 ------- slpeel_update_phis_for_duplicate_loop does not do its job properly. It fails to update the PHI nodes of at least the new loops latch block:
(gdb) call debug_bb (new_loop->latch) ;; basic block 14, loop depth 1, count 0 ;; prev block 13, next block 4 ;; pred: 13 [98.8%] (dfs_back,true,exec) ;; succ: 13 [100.0%] (fallthru,exec) # SMT.6_40 = PHI <(13)>; # j_41 = PHI <(13)>; <L23>:; goto <bb 13> (<L24>); -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26969