Re: [PATCH] tree-optimization: Fix tree dse of __*_chk PR93262

2020-01-14 Thread Jeff Law
On Wed, 2020-01-15 at 01:02 +0100, Jakub Jelinek wrote: > Hi! > > The following testcase shows that GCC trunk mishandles DSE of __*_chk > calls. Tail trimming of the calls is fine, we want to just decrease the > third argument and keep the first two and last arguments unmodified. > But for head t

[PATCH] tree-optimization: Fix tree dse of __*_chk PR93262

2020-01-14 Thread Jakub Jelinek
Hi! The following testcase shows that GCC trunk mishandles DSE of __*_chk calls. Tail trimming of the calls is fine, we want to just decrease the third argument and keep the first two and last arguments unmodified. But for head trimming, we currently increment the two by head_trim and decrease th