http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52996
--- Comment #4 from Marek Polacek <mpolacek at gcc dot gnu.org> 2012-12-20 13:37:47 UTC --- The issue here is that when unswitching, we create this new bb: ;; basic block 19, loop depth 0, count 0, freq 14, maybe hot ;; prev block 20, next block 1, flags: (NEW, RTL, MODIFIED) ;; pred: 18 [2.2%] ;; succ: 8 [100.0%] (FALLTHRU) its loop depth should be 1, not 0.