Received: from eggs.gnu.org ([208.118.235.92]:44149) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UPU00-0005T5-9B for qemu-devel@nongnu.org; Tue, 09 Apr 2013 04:33:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UPTzx-00043z-8h for qemu-devel@nongnu.org; Tue, 09 Apr 2013 04:33:52 -0400 Received: from csmailer.cs.nctu.edu.tw ([140.113.235.130]:41870) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UPTzw-00043c-Nj for qemu-devel@nongnu.org; Tue, 09 Apr 2013 04:33:49 -0400 Date: Tue, 9 Apr 2013 16:33:29 +0800 From: =?utf-8?B?6Zmz6Z+L5Lu7IChXZWktUmVuIENoZW4p?= Message-ID: <20130409083329.GA86718@cs.nctu.edu.tw> References: <1365479139-18737-1-git-send-email-lig.fnst@cn.fujitsu.com> <20130409080529.GA86334@cs.nctu.edu.tw> <5163CD39.9000007@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <5163CD39.9000007@redhat.com> Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH] translate: optimize gen_intermediate_code_internal List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: peter.maydell@linaro.org, proljc@gmail.com, e.voevodin@samsung.com, liguang , qemu-devel@nongnu.org, blauwirbel@gmail.com, paul@codesourcery.com, =?utf-8?B?IumZs+mfi+S7uyAoV2VpLVJlbiBDaGVuKSI=?= , afaerber@suse.de, aurelien@aurel32.net, rth@twiddle.net On Tue, Apr 09, 2013 at 10:11:37AM +0200, Paolo Bonzini wrote: > Il 09/04/2013 10:05, =E9=99=B3=E9=9F=8B=E4=BB=BB (Wei-Ren Chen) ha scri= tto: > > Hi liguang, > >=20 > > Just to be curious, how much performance improvement this patch can= get? >=20 > I think zero. It is indeed making the code a tiny bit more readable in > the 2nd/3rd/5th/6th hunks. Then I think the subject should be changed from "optimize" to "readable". "Optimize" is a kind of misleading... > But the 1st and 4th hunks, which do >=20 > - num_insns =3D 0; >=20 > are wrong. I'm surprised the compiler doesn't report usage of an > uninitialized variable. liguang, how did you test them? >=20 > Paolo >=20 >=20 > > Regards, > > chenwj >=20 --=20 Wei-Ren Chen (=E9=99=B3=E9=9F=8B=E4=BB=BB) Computer Systems Lab, Institute of Information Science, Academia Sinica, Taiwan (R.O.C.) Tel:886-2-2788-3799 #1667 Homepage: http://people.cs.nctu.edu.tw/~chenwj