http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53495
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> 2012-08-13 10:36:32 UTC --- Created attachment 28003 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28003 gcc48-pr53495.patch The problem is that find_moveable_pseudos creates some extra pseudos/def_insns, but then trivially_dead_insns is called by ira and deletes them (because they were feeding trivially dead insns only). Then move_unallocated_pseudos is called and expects to be able to tweak all the insns find_moveable_pseudos created. The attached untested patch fixes that.