https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100148
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> --- I bet it goes wrong during cprop1, at least fwprop1 dumps with --param min-nondebug-insn-uid=10000 look good to me and cprop1 contains -rescanning insn with uid = 10033. -GLOBAL CONST-PROP: Replacing reg 82 in jump_insn 10033 with constant (const_int 0 [0]) -Purged edges from bb 8 -deleting insn with uid = 10033. -GLOBAL CONST-PROP: Replacing reg 82 in insn 10029 with constant (const_int 0 [0]) -CPROP of foo, 14 basic blocks, 592 bytes needed, 0 local const props, 0 local copy props, 2 global const props, 0 global copy props +CPROP of foo, 14 basic blocks, 592 bytes needed, 0 local const props, 0 local copy props, 0 global const props, 0 global copy props as the first major difference.