[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID:
<PN0P287MB28435A985BADB4B4D857223AFF5A2@PN0P287MB2843.INDP287.PROD.OUTLOOK.COM>
Date: Wed, 13 Nov 2024 05:13:43 +0000
From: Hardevsinh Palaniya <hardevsinh.palaniya@...iconsignals.io>
To: Shahab Vahedi <list+bpf@...edi.org>, Vadim Fedorenko
<vadim.fedorenko@...ux.dev>, "ast@...nel.org" <ast@...nel.org>,
"andrii@...nel.org" <andrii@...nel.org>
CC: Daniel Borkmann <daniel@...earbox.net>, Martin KaFai Lau
<martin.lau@...ux.dev>, Eduard Zingerman <eddyz87@...il.com>, Song Liu
<song@...nel.org>, Yonghong Song <yonghong.song@...ux.dev>, John Fastabend
<john.fastabend@...il.com>, KP Singh <kpsingh@...nel.org>, Stanislav Fomichev
<sdf@...ichev.me>, Hao Luo <haoluo@...gle.com>, Jiri Olsa <jolsa@...nel.org>,
Vineet Gupta <vgupta@...nel.org>, "bpf@...r.kernel.org"
<bpf@...r.kernel.org>, "linux-snps-arc@...ts.infradead.org"
<linux-snps-arc@...ts.infradead.org>, "linux-kernel@...r.kernel.org"
<linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] ARC: bpf_jit_arcv2: Remove redundant condition check
Hi Vadim , Shahab
Thanks for the feedback
> > The original code is obviously optimized out, but the intention, I
> > believe, was to check if the jump is conditional or not.
> > So the proper fix should change the code to check cond:
> >
> > - if (ARC_CC_AL)
> > + if (cond == ARC_CC_AL)
Okay
> That is absolutely correct. If a new patch is not submitted soon
> I'll try to fix it myself.
if you are okay with that then I can proceed by submitting version 2
of the patch with the proposed changes included
Best Regards,
Hardev
________________________________________
From: Shahab Vahedi <list+bpf@...edi.org>
Sent: Wednesday, November 13, 2024 7:41 AM
To: Vadim Fedorenko <vadim.fedorenko@...ux.dev>; Hardevsinh Palaniya <hardevsinh.palaniya@...iconsignals.io>; ast@...nel.org <ast@...nel.org>; andrii@...nel.org <andrii@...nel.org>
Cc: Daniel Borkmann <daniel@...earbox.net>; Martin KaFai Lau <martin.lau@...ux.dev>; Eduard Zingerman <eddyz87@...il.com>; Song Liu <song@...nel.org>; Yonghong Song <yonghong.song@...ux.dev>; John Fastabend <john.fastabend@...il.com>; KP Singh <kpsingh@...nel.org>; Stanislav Fomichev <sdf@...ichev.me>; Hao Luo <haoluo@...gle.com>; Jiri Olsa <jolsa@...nel.org>; Vineet Gupta <vgupta@...nel.org>; bpf@...r.kernel.org <bpf@...r.kernel.org>; linux-snps-arc@...ts.infradead.org <linux-snps-arc@...ts.infradead.org>; linux-kernel@...r.kernel.org <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] ARC: bpf_jit_arcv2: Remove redundant condition check
CAUTION: This email originated from outside the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.
Vadim Fedorenko wrote:
> The original code is obviously optimized out, but the intention, I
> believe, was to check if the jump is conditional or not.
> So the proper fix should change the code to check cond:
>
> - if (ARC_CC_AL)
> + if (cond == ARC_CC_AL)
That is absolutely correct. If a new patch is not submitted soon
I'll try to fix it myself.
Cheers,
Shahab
Powered by blists - more mailing lists