From: Aurelien Jarno <aurelien@aurel32.net>
To: Richard Henderson <rth@twiddle.net>
Cc: Peter Maydell <peter.maydell@linaro.org>,
QEMU Developers <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [PULL v2] Queued TCG improvements
Date: Thu, 10 Sep 2015 21:31:31 +0200 [thread overview]
Message-ID: <20150910193131.GA17037@aurel32.net> (raw)
In-Reply-To: <55D4A57F.6070209@twiddle.net>
On 2015-08-19 08:49, Richard Henderson wrote:
> On 08/18/2015 04:23 PM, Peter Maydell wrote:
> > Hi. I'm afraid this fails 'make check' on 32-bit ARM for me:
>
> Found it. The problem is in the temps tracking patch, where we weren't
> ignoring TCG_CALL_DUMMY_ARG (-1). This isn't used on x86 of course, which is
> why we didn't see this failure there.
>
> The following fixes the problem. I chose to split the initialization so that
> non-call opcodes don't need to check for <dummy>.
>
> Can I get an RB for squashing this into the original patch?
Sorry for answering so late while it's already merged. This is indeed
correct. Thanks for fixing that.
> diff --git a/tcg/optimize.c b/tcg/optimize.c
> index 2693168..10795ec 100644
> --- a/tcg/optimize.c
> +++ b/tcg/optimize.c
> @@ -597,17 +597,24 @@ void tcg_optimize(TCGContext *s)
> const TCGOpDef *def = &tcg_op_defs[opc];
>
> oi_next = op->next;
> +
> + /* Count the arguments, and initialize the temps that are
> + going to be used */
> if (opc == INDEX_op_call) {
> nb_oargs = op->callo;
> nb_iargs = op->calli;
> + for (i = 0; i < nb_oargs + nb_iargs; i++) {
> + tmp = args[i];
> + if (tmp != TCG_CALL_DUMMY_ARG) {
> + init_temp_info(tmp);
> + }
> + }
> } else {
> nb_oargs = def->nb_oargs;
> nb_iargs = def->nb_iargs;
> - }
> -
> - /* Initialize the temps that are going to be used */
> - for (i = 0; i < nb_oargs + nb_iargs; i++) {
> - init_temp_info(args[i]);
> + for (i = 0; i < nb_oargs + nb_iargs; i++) {
> + init_temp_info(args[i]);
> + }
> }
>
> /* Do copy propagation */
>
>
--
Aurelien Jarno GPG: 4096R/1DDD8C9B
aurelien@aurel32.net http://www.aurel32.net
prev parent reply other threads:[~2015-09-10 19:31 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-18 14:59 [Qemu-devel] [PULL v2] Queued TCG improvements Richard Henderson
2015-08-18 23:23 ` Peter Maydell
2015-08-19 6:15 ` Richard Henderson
2015-08-19 15:49 ` Richard Henderson
2015-09-10 19:31 ` Aurelien Jarno [this message]
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=20150910193131.GA17037@aurel32.net \
--to=aurelien@aurel32.net \
--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.