Received: from eggs.gnu.org ([140.186.70.92]:49804) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QOrir-0001lT-5u for qemu-devel@nongnu.org; Tue, 24 May 2011 09:32:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QOrip-000753-TU for qemu-devel@nongnu.org; Tue, 24 May 2011 09:32:33 -0400 Received: from smtp.ispras.ru ([83.149.198.202]:41290) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QOrip-00074a-EX for qemu-devel@nongnu.org; Tue, 24 May 2011 09:32:31 -0400 Date: Tue, 24 May 2011 17:32:19 +0400 (MSD) From: Kirill Batuzov In-Reply-To: Message-ID: References: <1306161654-4388-1-git-send-email-batuzovk@ispras.ru> <20110523212241.GB5112@hall.aurel32.net> MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="8323329-515161584-1306243939=:2267" Subject: Re: [Qemu-devel] [RFC][PATCH v0 0/8] Improve register allocator List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Laurent Desnogues Cc: zhur@ispras.ru, qemu-devel@nongnu.org, Aurelien Jarno This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323329-515161584-1306243939=:2267 Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Tue, 24 May 2011, Laurent Desnogues wrote: > On Tue, May 24, 2011 at 1:31 PM, Kirill Batuzov wr= ote: > [...] > > Gathered statistics shows some interesting things too. I've run matri= x > > multiplication benchmark (guest - ARM, host - x86, linux-user mode, w= ith > > my patches applied) and here are the results: > > > > spill count =A0 =A0 =A0 =A0 3916 > > =A0real spills =A0 =A0 =A0 32 > > =A0spills at bb end =A01023 > > =A0spills at call: > > =A0 =A0globals =A0 =A0 =A0 =A0 2755 > > =A0 =A0iarg passing =A0 =A00 > > =A0 =A0call cloobers =A0 106 > > > > Real spills are spills generated by register allocator when it runs o= ut > > of registers. =A0They are less than 1% of all spills. =A0Other tests = show > > similar behavior. >=20 > When you write "host x86", do you mean IA32 or x86_64? > That might change the number of real spills a lot if you meant > x86_64. > I mean IA32, not x86_64. > > I think any further improvements to register allocator without leveli= ng > > conventions about saving globals at calls and BB ends somehow is > > useless. > > > > Currently we are looking if we can pass some globals on registers > > through basic block boundaries (inside one TB of course). >=20 > If by "basic block", you mean BB as implied by TCG br for > instance, I'm not sure all guests will benefit a lot. If you > mean that you intend on putting several guests BB in a > single TB then I guess you'll have to first collect dynamic > statistics before dynamically switching to grouping BB. >=20 I mean BB as implied by TCG br. Even if only some guest will benefit from this it still looks like a good idea. Other guests should not be affected much I believe. ---- Kirill. --8323329-515161584-1306243939=:2267--