Hi, > -----Original Message----- > From: Segher Boessenkool [mailto:seg...@kernel.crashing.org] > Sent: Tuesday, March 24, 2020 10:58 PM > To: Yangfei (Felix) <felix.y...@huawei.com> > Cc: gcc-patches@gcc.gnu.org; Zhanghaijian (A) <z.zhanghaij...@huawei.com> > Subject: Re: [PATCH PR94026] combine missed opportunity to simplify > comparisons with zero > > On Tue, Mar 24, 2020 at 06:30:12AM +0000, Yangfei (Felix) wrote: > > I modified combine emitting a simple AND operation instead of making one > zero_extract for this scenario. > > Attached please find the new patch. Hope this solves both of our concerns. > > This looks promising. I'll try it out, see what it does on other targets. > (It will > have to wait for GCC 11 stage 1, of course).
I see GCC11 stage 1 opens for commits now. I have rebased the patch on the latest repo. Attached please find the v2 patch. Bootstrapped and tested on x86-64-linux-gnu and aarch64-linux-gnu. Is this good to go? > > p.s. Please use a correct mime type? application/octet-stream isn't > something I can reply to. Just text/plain is fine :-) I have using plain text now, hope that works for you. :-) Thanks, Felix
pr94026-v2.diff
Description: pr94026-v2.diff