public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Jeff Law <jeffreyalaw@gmail.com>
To: gcc-patches@gcc.gnu.org
Subject: Re: [PATCH] regrename: Fix -fcompare-debug issue in check_new_reg_p [PR105041]
Date: Fri, 10 Jun 2022 14:09:44 -0600	[thread overview]
Message-ID: <0eb46b88-232e-01a9-5b40-a850c796d763@gmail.com> (raw)
In-Reply-To: <20220610154003.GR25951@gate.crashing.org>



On 6/10/2022 9:40 AM, Segher Boessenkool wrote:
> Hi!
>
> On Fri, Jun 10, 2022 at 07:52:57PM +0530, Surya Kumari Jangala wrote:
>> In check_new_reg_p, the nregs of a du chain is computed by obtaining the MODE
>> of the first element in the chain, and then calling hard_regno_nregs() with the
>> MODE. But the first element of the chain can be a DEBUG_INSN whose mode need
>> not be the same as the rest of the elements in the du chain. This
>> was resulting in fcompare-debug failure as check_new_reg_p was returning a
>> different result with -g for the same candidate register. We can instead obtain
>> nregs from the du chain itself.
> Great, thanks for finding and fixing this!  I cannot approve it, you'll
> have to wait for someone who can.  It looks fine to me, but that does
> not mean so much in regrename.c :-)
I'll go ahead and ACK the regrename bits.  So as soon as you're happy 
with the testsuite bits, this is good to go.

jeff


      reply	other threads:[~2022-06-10 20:09 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-10 14:22 Surya Kumari Jangala
2022-06-10 15:40 ` Segher Boessenkool
2022-06-10 20:09   ` Jeff Law [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=0eb46b88-232e-01a9-5b40-a850c796d763@gmail.com \
    --to=jeffreyalaw@gmail.com \
    --cc=gcc-patches@gcc.gnu.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 read-only IMAP folder(s) and NNTP newsgroup(s).