From: Aurelien Jarno <aurelien@aurel32.net>
To: qemu-devel@nongnu.org
Cc: Aurelien Jarno <aurelien@aurel32.net>
Subject: [Qemu-devel] [PATCH 0/3] TCG: first attempt to reduce host registers usage
Date: Tue, 17 May 2011 18:28:17 +0200 [thread overview]
Message-ID: <1305649700-9078-1-git-send-email-aurelien@aurel32.net> (raw)
This patch series is a first attempt after the TCG_AREG0 discussion to
show it's possible to easily (at least without making huge changes to
the TCG core code) spare some registers and avoid a few spills on low
register count TCG targets like i386.
On i386 hosts some TB are reduced by up to 10%, though the global TB
reduction is around 0.5%. The gain is speed is only measurable in user
mode with very specific benchmarks: sha1sum of 4GB files is 1.9% +/-0.2%
faster. On x86-64 host, some TB are one or two bytes longer, some of
them one or two bytes smaller, mainly due to different register usage,
which adds or removes some REX prefixes, but overall the size is
unchanged.
I have a few more ideas to further reduce register spill, I'll try to
implement them in the next days/weeks.
Aurelien Jarno (3):
tcg: replace op_dead_iargs by op_dead_args
tcg: mark dead output argument in op_dead_args
tcg: don't keep dead outputs in registers
tcg/tcg.c | 105 +++++++++++++++++++++++++++++++++++--------------------------
tcg/tcg.h | 4 +-
2 files changed, 62 insertions(+), 47 deletions(-)
--
1.7.2.3
next reply other threads:[~2011-05-17 16:28 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-17 16:28 Aurelien Jarno [this message]
2011-05-17 16:28 ` [Qemu-devel] [PATCH 1/3] tcg: replace op_dead_iargs by op_dead_args Aurelien Jarno
2011-05-17 16:28 ` [Qemu-devel] [PATCH 2/3] tcg: mark dead output argument in op_dead_args Aurelien Jarno
2011-05-17 16:28 ` [Qemu-devel] [PATCH 3/3] tcg: don't keep dead outputs in registers Aurelien Jarno
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1305649700-9078-1-git-send-email-aurelien@aurel32.net \
--to=aurelien@aurel32.net \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).