From: "Alex Bennée" <alex.bennee@linaro.org>
To: Richard Henderson <richard.henderson@linaro.org>
Cc: peter.maydell@linaro.org, qemu-devel@nongnu.org
Subject: Re: [PATCH 2/2] tcg/optimize: Flush data at labels not TCG_OPF_BB_END
Date: Wed, 21 Oct 2020 15:57:55 +0100 [thread overview]
Message-ID: <878sbzwrrg.fsf@linaro.org> (raw)
In-Reply-To: <20201013222330.173525-3-richard.henderson@linaro.org>
Richard Henderson <richard.henderson@linaro.org> writes:
> We can easily propagate temp values through the entire extended
> basic block (in this case, the set of blocks connected by fallthru),
> simply by not discarding the register state at the branch.
>
> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
> ---
> tcg/optimize.c | 35 ++++++++++++++++++-----------------
> 1 file changed, 18 insertions(+), 17 deletions(-)
>
> diff --git a/tcg/optimize.c b/tcg/optimize.c
> index 220f4601d5..9952c28bdc 100644
> --- a/tcg/optimize.c
> +++ b/tcg/optimize.c
> @@ -1484,29 +1484,30 @@ void tcg_optimize(TCGContext *s)
> }
> }
> }
> - goto do_reset_output;
> + /* fall through */
>
> default:
> do_default:
A random aside:
The optimize function has a lot of goto's in it and I find generally
hard to follow. Anyway:
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
--
Alex Bennée
next prev parent reply other threads:[~2020-10-21 15:10 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-10-13 22:23 [PATCH 0/2] tcg: optimize across branches Richard Henderson
2020-10-13 22:23 ` [PATCH 1/2] tcg: Do not kill globals at conditional branches Richard Henderson
2020-10-21 13:29 ` Alex Bennée
2020-10-13 22:23 ` [PATCH 2/2] tcg/optimize: Flush data at labels not TCG_OPF_BB_END Richard Henderson
2020-10-21 14:57 ` Alex Bennée [this message]
2020-10-21 15:51 ` Richard Henderson
2020-10-19 23:04 ` [PATCH 0/2] tcg: optimize across branches 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=878sbzwrrg.fsf@linaro.org \
--to=alex.bennee@linaro.org \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=richard.henderson@linaro.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).