https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116156
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Assignee|unassigned at gcc dot gnu.org |pinskia at gcc dot gnu.org --- Comment #7 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Figured it out. ``` /* Substitute from our lattice. We need to do so only once. */ .... if (!is_gimple_debug (stmt)) bitmap_set_bit (simple_dce_worklist, SSA_NAME_VERSION (use)); if (may_propagate_copy (use, val)) ``` That is the when subsituting from the lattice we can't set it the name here if the statement was a debug statement because then we would a difference between the debug and non-debug.