public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Segher Boessenkool <segher@kernel.crashing.org>
To: Richard Biener <richard.guenther@gmail.com>
Cc: "Bin.Cheng" <amker.cheng@gmail.com>,
	Eric Botcazou <ebotcazou@adacore.com>, Jeff Law <law@redhat.com>,
	"bin.cheng" <bin.cheng@linux.alibaba.com>,
	GCC Patches <gcc-patches@gcc.gnu.org>
Subject: Re: 0001-Don-t-skip-prologue-instructions-as-it-could-affect-.patch
Date: Thu, 22 Jul 2021 18:36:34 -0500	[thread overview]
Message-ID: <20210722233634.GN1583@gate.crashing.org> (raw)
In-Reply-To: <CAFiYyc1zOfKttY7uE7Udh+tse-3VO2zWnXiEBX4PWLN9krpOww@mail.gmail.com>

Hi!

On Thu, Jul 22, 2021 at 03:04:32PM +0200, Richard Biener wrote:
> On Thu, Jul 22, 2021 at 9:02 AM Bin.Cheng via Gcc-patches
> <gcc-patches@gcc.gnu.org> wrote:
> >
> > Gentle ping.  Any suggestions would be appreciated.

Bin: I never received your messages.  And my replies to you @alibaba are
refused by the mail system there as well.

I'll dig things up from the ML archives.

> So just to say something - does the existing code mean that any use of
> the alias info on prologue/epilogue insns is wrong?  We have
> 
>   /* The prologue/epilogue insns are not threaded onto the
>      insn chain until after reload has completed.  Thus,
>      there is no sense wasting time checking if INSN is in
>      the prologue/epilogue until after reload has completed.  */
>   bool could_be_prologue_epilogue = ((targetm.have_prologue ()
>                                       || targetm.have_epilogue ())
>                                      && reload_completed);
> 
> so when !could_be_prologue_epilogue then passes shouldn't run into
> them if the comment is correct.  But else even epilogue stmts could appear
> anywhere (like scheduled around)?  So why's skipping those OK?
> 
> Are passes supposed to check whether they are dealing with pro/epilogue
> insns and not touch them?  CCing people that might know.

*logue isns should not exist until pass pro_and_epilogue.  This pass is
later than reload.

All such stack accesses use gen_frame_mem(), which does
  set_mem_alias_set (mem, get_frame_alias_set ());
so what is going wrong here?


Segher

  reply	other threads:[~2021-07-22 23:38 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-14  9:14 0001-Don-t-skip-prologue-instructions-as-it-could-affect-.patch bin.cheng
2021-07-22  7:01 ` 0001-Don-t-skip-prologue-instructions-as-it-could-affect-.patch Bin.Cheng
2021-07-22 13:04   ` 0001-Don-t-skip-prologue-instructions-as-it-could-affect-.patch Richard Biener
2021-07-22 23:36     ` Segher Boessenkool [this message]
2021-07-23 16:27     ` 0001-Don-t-skip-prologue-instructions-as-it-could-affect-.patch Jeff Law
2021-07-26 22:55       ` 0001-Don-t-skip-prologue-instructions-as-it-could-affect-.patch Segher Boessenkool
2021-07-27 15:20         ` 0001-Don-t-skip-prologue-instructions-as-it-could-affect-.patch Jeff Law
2021-07-22 23:51 ` 0001-Don-t-skip-prologue-instructions-as-it-could-affect-.patch Segher Boessenkool
2021-07-23  6:50   ` 0001-Don-t-skip-prologue-instructions-as-it-could-affect-.patch Bin.Cheng
2021-07-23 16:29 ` 0001-Don-t-skip-prologue-instructions-as-it-could-affect-.patch Jeff Law
2021-07-26  1:47   ` 0001-Don-t-skip-prologue-instructions-as-it-could-affect-.patch Bin.Cheng
2021-07-26 15:07     ` 0001-Don-t-skip-prologue-instructions-as-it-could-affect-.patch Jeff Law
2021-07-27  8:50       ` 0001-Don-t-skip-prologue-instructions-as-it-could-affect-.patch Bin.Cheng
2021-07-27  8:59         ` 0001-Don-t-skip-prologue-instructions-as-it-could-affect-.patch Richard Biener
2021-07-27 15:21         ` 0001-Don-t-skip-prologue-instructions-as-it-could-affect-.patch Jeff Law

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=20210722233634.GN1583@gate.crashing.org \
    --to=segher@kernel.crashing.org \
    --cc=amker.cheng@gmail.com \
    --cc=bin.cheng@linux.alibaba.com \
    --cc=ebotcazou@adacore.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=law@redhat.com \
    --cc=richard.guenther@gmail.com \
    /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 read-only IMAP folder(s) and NNTP newsgroup(s).