public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: "G.T." <gntengetta@gmail.com>
To: gcc@gcc.gnu.org
Subject: Possible dead code in file lra-spills.cc
Date: Sat, 17 Dec 2022 04:25:54 -0500	[thread overview]
Message-ID: <CAOBJmmsDctppVOtFs_K=-ag31X2sUv2cu+QdHuJcv2KB5Bgktw@mail.gmail.com> (raw)

At line 276, lra_assert (spill_class != NO_REGS); would trigger
whenever execution reached here with spill_class equal to NO_REGS.
Seems to me that would never happen. Because one of the conditions in
the if statement right above it (line 265) catches spill_class ==
NO_REGS and causes the rest of the for loop to be skipped by executing
continue in the consequent of the if. So lra_assert never sees
spill_class == NO_REGS. That makes line 276 dead code, right?

Thanks.
GT.

             reply	other threads:[~2022-12-14 17:27 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-17  9:25 G.T. [this message]
2022-12-14 18:46 ` Richard Biener
2022-12-15 15:21   ` G.T.

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='CAOBJmmsDctppVOtFs_K=-ag31X2sUv2cu+QdHuJcv2KB5Bgktw@mail.gmail.com' \
    --to=gntengetta@gmail.com \
    --cc=gcc@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).