From: Bastian Koppelmann <kbastian@mail.uni-paderborn.de>
To: Richard Henderson <rth@twiddle.net>
Cc: peter.maydell@linaro.org, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH v3 1/8] tcg: Move some opcode generation functions out of line
Date: Wed, 04 Feb 2015 22:12:43 +0000 [thread overview]
Message-ID: <54D2995B.7040205@mail.uni-paderborn.de> (raw)
In-Reply-To: <1422977710-22038-2-git-send-email-rth@twiddle.net>
On 02/03/2015 03:35 PM, Richard Henderson wrote:
> Some of these functions are really quite large. We have a number of
> things that ought to be circularly dependent, but we duplicated code
> to break that chain for the inlines.
>
> This saved 25% of the code size of one of the translators I examined.
>
> Reviewed-by: Bastian Koppelmann<kbastian@mail.uni-paderborn.de>
> Signed-off-by: Richard Henderson<rth@twiddle.net>
> ---
> Makefile.target | 2 +-
> tcg/tcg-op.c | 1978 +++++++++++++++++++++++++++++++++++++++++++
> tcg/tcg-op.h | 2488 ++++++++-----------------------------------------------
> tcg/tcg.c | 137 ---
> tcg/tcg.h | 3 -
> 5 files changed, 2339 insertions(+), 2269 deletions(-)
> create mode 100644 tcg/tcg-op.c
>
>
> +static inline TCGMemOp tcg_canonicalize_memop(TCGMemOp op, bool is64, bool st)
> +{
> + switch (op & MO_SIZE) {
> + case MO_8:
> + op &= ~MO_BSWAP;
> + break;
> + case MO_16:
> + break;
> + case MO_32:
> + if (!is64) {
> + op &= ~MO_SIGN;
> + }
> + break;
> + case MO_64:
> + if (!is64) {
> + tcg_abort();
> + }
> + break;
> + }
> + if (st) {
> + op &= ~MO_SIGN;
>
> + }
I've got some weird trailing whitespace here, but maybe it's just my
mail client.
Cheers,
Bastian
next prev parent reply other threads:[~2015-02-04 21:11 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-03 15:35 [Qemu-devel] [PATCH v3 0/8] Linked list for tcg ops Richard Henderson
2015-02-03 15:35 ` [Qemu-devel] [PATCH v3 1/8] tcg: Move some opcode generation functions out of line Richard Henderson
2015-02-04 22:12 ` Bastian Koppelmann [this message]
2015-02-06 1:15 ` Richard Henderson
2015-02-03 15:35 ` [Qemu-devel] [PATCH v3 2/8] tcg: Reduce ifdefs in tcg-op.c Richard Henderson
2015-02-03 15:35 ` [Qemu-devel] [PATCH v3 3/8] tcg: Move emit of INDEX_op_end into gen_tb_end Richard Henderson
2015-02-03 15:35 ` [Qemu-devel] [PATCH v3 4/8] tcg: Introduce tcg_op_buf_count and tcg_op_buf_full Richard Henderson
2015-02-03 15:35 ` [Qemu-devel] [PATCH v3 5/8] tcg: Put opcodes in a linked list Richard Henderson
2015-02-04 22:10 ` Bastian Koppelmann
2015-02-03 15:35 ` [Qemu-devel] [PATCH v3 6/8] tcg: Remove opcodes instead of noping them out Richard Henderson
2015-02-03 15:35 ` [Qemu-devel] [PATCH v3 7/8] tcg: Implement insert_op_before Richard Henderson
2015-02-04 22:11 ` Bastian Koppelmann
2015-02-03 15:35 ` [Qemu-devel] [PATCH v3 8/8] tcg: Remove unused opcodes Richard Henderson
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=54D2995B.7040205@mail.uni-paderborn.de \
--to=kbastian@mail.uni-paderborn.de \
--cc=peter.maydell@linaro.org \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.