Re: [PATCH] combine: Don't fold away side-effects in simplify_and_const_int_1 [PR99830]

2021-04-12 Thread Segher Boessenkool
Hi! On Sat, Apr 10, 2021 at 08:02:29AM +0200, Jakub Jelinek wrote: > Here is an alternate patch for the PR99830 bug. > As discussed on IRC and in the PR, the reason why a (clobber:TI (const_int 0)) > has been propagated into the debug insns is that it got optimized away > during simplification fro

[PATCH] combine: Don't fold away side-effects in simplify_and_const_int_1 [PR99830]

2021-04-09 Thread Jakub Jelinek via Gcc-patches
Hi! Here is an alternate patch for the PR99830 bug. As discussed on IRC and in the PR, the reason why a (clobber:TI (const_int 0)) has been propagated into the debug insns is that it got optimized away during simplification from the i3 instruction pattern. And that happened because simplify_and_c