Re: [PATCH] cprop: Fix -fcompare-debug bug in constprop_register [PR100148]

2021-04-21 Thread Richard Biener
On Wed, 21 Apr 2021, Jakub Jelinek wrote: > Hi! > > The following testcase shows different behavior between -g and -g0 > in constprop_register, if a flags register setter is separated > from a conditional jump using those flags with -g by a DEBUG_INSN. > As it uses just NEXT_INSN, for -g it will

[PATCH] cprop: Fix -fcompare-debug bug in constprop_register [PR100148]

2021-04-21 Thread Jakub Jelinek via Gcc-patches
Hi! The following testcase shows different behavior between -g and -g0 in constprop_register, if a flags register setter is separated from a conditional jump using those flags with -g by a DEBUG_INSN. As it uses just NEXT_INSN, for -g it will look at the DEBUG_INSN which is not a conditional jump,