From: "陳韋任 (Wei-Ren Chen)" <chenwj@iis.sinica.edu.tw>
To: li guang <lig.fnst@cn.fujitsu.com>
Cc: peter.maydell@linaro.org,
"\"陳韋任 (Wei-Ren Chen)\"" <chenwj@iis.sinica.edu.tw>,
e.voevodin@samsung.com, proljc@gmail.com, qemu-devel@nongnu.org,
blauwirbel@gmail.com, paul@codesourcery.com,
"Paolo Bonzini" <pbonzini@redhat.com>,
afaerber@suse.de, aurelien@aurel32.net, rth@twiddle.net
Subject: Re: [Qemu-devel] [PATCH] translate: optimize gen_intermediate_code_internal
Date: Tue, 9 Apr 2013 17:20:04 +0800 [thread overview]
Message-ID: <20130409092004.GA88144@cs.nctu.edu.tw> (raw)
In-Reply-To: <1365495670.9553.59.camel@liguang.fnst.cn.fujitsu.com>
Hi liguang,
On Tue, Apr 09, 2013 at 04:21:10PM +0800, li guang wrote:
> 在 2013-04-09二的 10:11 +0200,Paolo Bonzini写道:
> > Il 09/04/2013 10:05, 陳韋任 (Wei-Ren Chen) ha scritto:
> > > Hi liguang,
> > >
> > > Just to be curious, how much performance improvement this patch can get?
> >
> > I think zero. It is indeed making the code a tiny bit more readable in
> > the 2nd/3rd/5th/6th hunks.
>
> I think maybe a little greater than 0,
> for it optimizes a variable 'lj' increment.
As Peter said, only profiling can show if there is a performance
improvement.
> > But the 1st and 4th hunks, which do
> >
> > - num_insns = 0;
> >
> > are wrong. I'm surprised the compiler doesn't report usage of an
> > uninitialized variable. liguang, how did you test them?
>
> I do normal compile and run guest OS for TCG,
> I think 'max_insns = tb->cflags & CF_COUNT_MASK;' is enough
> to feed compiler.
num_insns and max_insns are two different variables, right? So this
assignment does not do anything with num_insns.
Regards,
chenwj
--
Wei-Ren Chen (陳韋任)
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
next prev parent reply other threads:[~2013-04-09 9:20 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-09 3:45 [Qemu-devel] [PATCH] translate: optimize gen_intermediate_code_internal liguang
2013-04-09 8:05 ` 陳韋任 (Wei-Ren Chen)
2013-04-09 8:11 ` Paolo Bonzini
2013-04-09 8:21 ` li guang
2013-04-09 9:08 ` Peter Maydell
2013-04-10 0:28 ` li guang
2013-04-10 2:31 ` 陳韋任 (Wei-Ren Chen)
2013-04-10 2:38 ` li guang
2013-04-10 2:58 ` 陳韋任 (Wei-Ren Chen)
2013-04-10 3:03 ` li guang
2013-04-09 9:20 ` 陳韋任 (Wei-Ren Chen) [this message]
2013-04-11 2:12 ` li guang
2013-04-09 8:33 ` 陳韋任 (Wei-Ren Chen)
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=20130409092004.GA88144@cs.nctu.edu.tw \
--to=chenwj@iis.sinica.edu.tw \
--cc=afaerber@suse.de \
--cc=aurelien@aurel32.net \
--cc=blauwirbel@gmail.com \
--cc=e.voevodin@samsung.com \
--cc=lig.fnst@cn.fujitsu.com \
--cc=paul@codesourcery.com \
--cc=pbonzini@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=proljc@gmail.com \
--cc=qemu-devel@nongnu.org \
--cc=rth@twiddle.net \
/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).