From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751586AbcIDFBu (ORCPT ); Sun, 4 Sep 2016 01:01:50 -0400 Received: from mout.web.de ([217.72.192.78]:57684 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750714AbcIDFBr (ORCPT ); Sun, 4 Sep 2016 01:01:47 -0400 Subject: Re: sparc: bpf_jit: Move four assignments in bpf_jit_compile() To: Julian Calaby References: <566ABCD9.1060404@users.sourceforge.net> <2179bf7c-9878-adf7-da97-2746d5aa3d34@users.sourceforge.net> Cc: sparclinux , Adam Buchbinder , Alexei Starovoitov , Daniel Borkmann , "David S. Miller" , Rabin Vincent , LKML , kernel-janitors , Julia Lawall , Paolo Bonzini From: SF Markus Elfring Message-ID: Date: Sun, 4 Sep 2016 07:00:22 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:Shnngi12lU6XHJ59WmhGfgH934gG2wAotUZLcFwOQi2wrIQisJn MG1xgfP9qk/Uhten07IDujaDxzINJEjYZml+mNQzx3KiNPoOgUzcUiz+hsjx9Q6MSzvzz6Z BwV4SFCuqYyWCKoksBxS500NiQmZb6Ox2dVsj5SSeXemMH4mfy6f8kAwAnmLmtV5T0qYtOg 5/2pVcC1lA/gziXn4eH4g== X-UI-Out-Filterresults: notjunk:1;V01:K0:L435wR4W+NE=:7lwxRKYZZ9VeCDOVpZ6V7a n1zploF7NJMTfyRCqDVkQj+6p+88tpZ3+85Jkwwrpi/+GwienEHb4Hp/w3bhX1MLWO0yIC+ex 6OeO/9vvAlPAOYOyjaqdl1zDY10TQmZeDnuOYKWpQ9C3hmWDi/kByb4wIhelF1zJ+TxJsXJHE Jl9288uyvxkax7+4xBoL64a0Mri4/8neu9mV+f/z17WRvsiPOAqINXbHqLjMkCrLw1ea6nWjw JwyS3VqxPpSKM+QM04SbIN3b5pQR3dXr1cuSnCH+45Sxpl6plfUYkBpbuKw7gOhXUvEDpAuFe puIsZji8sH0+j8GVdntl1BfD675DVk2QAJEByajLxdpYAdZrVGf45XdL+JJBlJJa3RmDgspqb 6cexJ/Mig+06083CBOnD3BFvcACw3RLD1TRcWtKghS9KaWsW8jIkV0uyT/MHLJ7lryoEOL4c4 2pvMCqY+mID5B8qSdcruUJdFvG+nCzh0q1HOB+IPi8pV7yMgWGybyH0DbHmg71TOyvV00x0vR p69JTH46ADY4GBukXtyrD+XgRCn9T25COjYhUG+TyAfiGgS46lExUtLhNgk6TbjKi5Pofb+qQ /DjVGKCgI3m7PdES59UFehyI7NHL9OUhdUkwieOHVthK0B6b4iGNPbZR2uqIC22g0R6SGaWa0 SmNpMKJFEI0FpIzCDvmtgvyZzrsU13HkQRBJmbkocRWXtSHcqH0zvU9adgs9ialRIplif3OWa VtquHSFEMWYef6lTbpRlNhHVdhZxWNj5c48zN5S7v3WO6QJQMRUEU6ayKr0ORrUBTMl4A//FO ZdXL1US Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Does this change improve the resulting binary? I hope so. - I propose to give the refactorings "Reduce scope of variable" and "Extract a function" (and the corresponding consequences) another look. > I.e. does it make it smaller or faster? It is generally possible that a specific code generation variant will also affect the run time properties you mentioned. > Otherwise this change is useless churn - you're making the code more > complicated, longer and harder to read for practically no benefit. I imagine that there other reasons you could eventually accept for this use case, aren't there? Regards, Markus