From: Laurent Desnogues <laurent.desnogues@gmail.com>
To: "Andreas Färber" <andreas.faerber@web.de>
Cc: mj.mccormack@samsung.com, qemu-devel@nongnu.org, zhur@ispras.ru,
Kirill Batuzov <batuzovk@ispras.ru>,
Aurelien Jarno <aurelien@aurel32.net>,
Richard Henderson <rth@twiddle.net>
Subject: Re: [Qemu-devel] [PATCH 0/6] Implement constant folding and copy propagation in TCG
Date: Sat, 21 May 2011 11:37:49 +0200 [thread overview]
Message-ID: <BANLkTim1CoCCxD0MEDuwR=JGYUU1jAUbOA@mail.gmail.com> (raw)
In-Reply-To: <009487ED-9D21-4779-A064-30044601B443@web.de>
On Sat, May 21, 2011 at 1:31 AM, Andreas Färber <andreas.faerber@web.de> wrote:
[...]
> Has anyone evaluated reusing LLVM optimization passes for TCG? Or maybe
> GIMPL if there's an equivalent?
IMHO the qemu_ld/st semantics and the size of TB blocks
will always limit the usefulness of more involved
optimizations than what already exists in QEMU.
Basically qemu_ld/st ops prevent any code change across
them which make optimization opportunities rather low.
Considering they always take the fast path would surely
change the situation, but then the slow path would have to
be able to rebuild information; certainly possible, but
quite involved too :-)
Once this qemu_ld/st change is done, you'll the need to
get to the problem of too short TB blocks; a way to do
this is to generate traces of frequently executed blocks
and consider them as a single block[1]; that would open
the door to many more code generation improvements.
This certainly doesn't mean Kirill and Aurélien changes
are not welcome, just that I think, in the current state,
such changes will always have a limited impact.
Laurent
[1] See for instance section 2.3 of Derek Bruening's
PhD thesis about DynamoRIO
http://www.burningcutlery.com/derek/phd.html
next prev parent reply other threads:[~2011-05-21 9:37 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-20 12:39 [Qemu-devel] [PATCH 0/6] Implement constant folding and copy propagation in TCG Kirill Batuzov
2011-05-20 12:39 ` [Qemu-devel] [PATCH 1/6] Add TCG optimizations stub Kirill Batuzov
2011-05-20 18:12 ` Richard Henderson
2011-05-20 18:33 ` Richard Henderson
2011-05-20 12:39 ` [Qemu-devel] [PATCH 2/6] Add copy and constant propagation Kirill Batuzov
2011-05-20 18:22 ` Richard Henderson
2011-05-20 18:46 ` Paolo Bonzini
2011-05-20 19:41 ` Aurelien Jarno
2011-05-20 12:39 ` [Qemu-devel] [PATCH 3/6] Do constant folding for basic arithmetic operations Kirill Batuzov
2011-05-20 12:39 ` [Qemu-devel] [PATCH 4/6] Do constant folding for boolean operations Kirill Batuzov
2011-05-20 18:45 ` Richard Henderson
2011-05-20 12:39 ` [Qemu-devel] [PATCH 5/6] Do constant folding for shift operations Kirill Batuzov
2011-05-20 18:37 ` Richard Henderson
2011-05-26 12:36 ` Kirill Batuzov
2011-05-26 13:56 ` Richard Henderson
2011-05-26 19:14 ` Blue Swirl
2011-05-26 20:10 ` Richard Henderson
2011-05-26 20:25 ` Blue Swirl
2011-05-26 21:14 ` Richard Henderson
2011-05-27 15:41 ` Jamie Lokier
2011-05-27 17:07 ` Blue Swirl
2011-05-27 19:54 ` Richard Henderson
2011-05-27 7:09 ` Paolo Bonzini
2011-05-20 12:39 ` [Qemu-devel] [PATCH 6/6] Do constant folding for unary operations Kirill Batuzov
2011-05-20 18:39 ` Richard Henderson
2011-05-20 17:50 ` [Qemu-devel] [PATCH 0/6] Implement constant folding and copy propagation in TCG Richard Henderson
2011-05-20 19:37 ` Aurelien Jarno
2011-05-20 23:31 ` Andreas Färber
2011-05-21 9:37 ` Laurent Desnogues [this message]
2011-05-21 10:46 ` Aurelien Jarno
2011-05-21 17:53 ` Kirill Batuzov
2011-05-20 19:35 ` Aurelien Jarno
2011-05-21 12:47 ` Dmitry Zhurikhin
2011-05-21 12:48 ` 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='BANLkTim1CoCCxD0MEDuwR=JGYUU1jAUbOA@mail.gmail.com' \
--to=laurent.desnogues@gmail.com \
--cc=andreas.faerber@web.de \
--cc=aurelien@aurel32.net \
--cc=batuzovk@ispras.ru \
--cc=mj.mccormack@samsung.com \
--cc=qemu-devel@nongnu.org \
--cc=rth@twiddle.net \
--cc=zhur@ispras.ru \
/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).