Re: [PATCH] ifcvt: Fix -fcompare-debug bug [PR100852]

2021-06-09 Thread Eric Botcazou
> The following testcase fails -fcompare-debug, because it is ifcvt optimized > into umin only with -g0 and not with -g - the function(s) use > prev_nonnote_insn, which without -g finds a real insn the code is looking > for, while with -g finds a DEBUG_INSN. > > Fixed thusly, bootstrapped/regteste

[PATCH] ifcvt: Fix -fcompare-debug bug [PR100852]

2021-06-09 Thread Jakub Jelinek via Gcc-patches
Hi! The following testcase fails -fcompare-debug, because it is ifcvt optimized into umin only with -g0 and not with -g - the function(s) use prev_nonnote_insn, which without -g finds a real insn the code is looking for, while with -g finds a DEBUG_INSN. Fixed thusly, bootstrapped/regtested on x8