http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46885
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED AssignedTo|unassigned at gcc dot |jakub at gcc dot gnu.org |gnu.org | --- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> 2010-12-13 15:48:16 UTC --- Created attachment 22742 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22742 gcc46-pr46885.patch Untested fix. When bumping in latch, create_iv inserts the new stmt after the given position instead of before it, which ICEs if the bb contains just debug stmts. When inserting after the last stmt, we should just use gsi_last_bb.