From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MYcAJ-0004jH-T6 for qemu-devel@nongnu.org; Wed, 05 Aug 2009 04:48:07 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MYcAJ-0004j5-Cr for qemu-devel@nongnu.org; Wed, 05 Aug 2009 04:48:07 -0400 Received: from [199.232.76.173] (port=54887 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MYcAJ-0004j2-6w for qemu-devel@nongnu.org; Wed, 05 Aug 2009 04:48:07 -0400 Received: from ey-out-1920.google.com ([74.125.78.145]:4874) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MYcAI-0005dG-LA for qemu-devel@nongnu.org; Wed, 05 Aug 2009 04:48:06 -0400 Received: by ey-out-1920.google.com with SMTP id 5so97366eyb.4 for ; Wed, 05 Aug 2009 01:48:05 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <4A793F32.4090207@nomovok.com> References: <4A793F32.4090207@nomovok.com> Date: Wed, 5 Aug 2009 10:48:05 +0200 Message-ID: <5b31733c0908050148m512aa221p70ba8b3e56699203@mail.gmail.com> Subject: Re: [Qemu-devel] [PATCH] RFC: TCG constant propagation. From: Filip Navara Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Pablo Virolainen Cc: qemu-devel@nongnu.org On Wed, Aug 5, 2009 at 10:13 AM, Pablo Virolainen wrote: > Filip Navara kirjoitti: >> >> Add support for constant propagation to TCG. This has to be paired with >> the liveness >> analysis to remove the dead code. Not all possible operations are covered, >> but the >> most common ones are. This improves the code generation for several ARM >> instructions, >> like MVN (immediate), and it may help other targets as well. > > On my small benchmark, qemu-system-sh4 was about 3% slower on Intel Xeon > E5405@2.00GHz. I'm running 64-bit mode. My mini benchmark is to build zlib > 1.2.3, so it's 'real' world work load. Ran the benchmark several times and > results seems to be pretty constant. Thanks for testing and reporting the results. I'll see if I can reduce the overhead or if I should ditch the patch. > ps. I added INDEX_op_*_i64 cases to the evaluation part. I'm not completly > sure if those &mask should be there. I've rewritten the patch and fixed the 64-bit mess that was there. It is available at http://repo.or.cz/w/qemu/navara.git?a=commit;h=5df3a524fc0b923cf2e5e1883ff550d055d36eb5 Best regards, Filip Navara