[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <874l6zfr4f.fsf@netronome.com>
Date: Mon, 15 Apr 2019 12:24:32 +0100
From: Jiong Wang <jiong.wang@...ronome.com>
To: "Naveen N. Rao" <naveen.n.rao@...ux.vnet.ibm.com>
Cc: alexei.starovoitov@...il.com, daniel@...earbox.net,
Jiong Wang <jiong.wang@...ronome.com>, bpf@...r.kernel.org,
netdev@...r.kernel.org, oss-drivers@...ronome.com
Subject: Re: [PATCH v3 bpf-next 08/19] bpf: insert explicit zero extension insn when hardware doesn't do it implicitly
Naveen N. Rao writes:
> Naveen N. Rao wrote:
>>> It is then for all back-ends to decide how to use such information to
>>> eliminate unnecessary zero extension code-gen during JIT compilation.
>>>
>>> One approach is:
>>> 1. Verifier insert explicit zero extension for those instructions that
>>> need zero extension.
>>> 2. All JIT back-ends do NOT generate zero extension for sub-register
>>> write any more.
>>
>> Is it possible to instead give a hint to the JIT back-ends on the
>> instructions needing zero-extension? That would help in case of
>> architectures that have single/more-optimal instruction for zero
>> extension, compared to having to emit 2 instructions with the current
>> approach.
>
> I just noticed your discussion with Alexei on RFC v1 after posting this.
> I agree that this can be looked into subsequently -- either a new
> instruction, or detecting this during JIT.
Thanks Naveen.
It will be great if you could test the latest set on PowerPC to see if
there is any regression for example for those under test_progs and
test_verifier.
And it will be even greater if you also use latest llvm snapshot for the
testing, which then will enable test_progs_32 etc.
Thanks.
Regards,
Jiong
Powered by blists - more mailing lists