public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Shubham Narlawar <gsocshubham@gmail.com>
To: Richard Biener <richard.guenther@gmail.com>
Cc: Shubham Narlawar via Gcc <gcc@gcc.gnu.org>
Subject: Re: Updating phi nodes on deleting gimple statement
Date: Fri, 17 Dec 2021 16:32:13 +0530	[thread overview]
Message-ID: <CAN=hqDB4fY9B1ppNdNTHK0hY5hA42+0Z1bPihJvF=pf-jqt3uw@mail.gmail.com> (raw)
In-Reply-To: <AB6E26B3-280F-42EE-8A60-3511700424B9@gmail.com>

On Thu, 16 Dec, 2021, 6:28 pm Richard Biener, <richard.guenther@gmail.com>
wrote:

> On December 16, 2021 7:33:37 AM GMT+01:00, Shubham Narlawar via Gcc <
> gcc@gcc.gnu.org> wrote:
> >Hello,
> >
> >
> >I have a PHI node that defines a variable that is used in 1 statement. I
> >then delete the statement. I think I need to update the PHI node to no
> >longer reference that variable. I looked through some code and I don't see
> >a way to just remove an element from a PHI node and I see in the file
> >omp-expand.c what looks like creating a new PHI node and copying over all
> >of the elements.
> >
> >My question is: how do I update a PHI node per the above? Is it necessary
> -
> >if I don't do anything and leave the PHI node as is it appears to work,
> >though I don't know the implications of this. If I do need to update it,
> do
> >I recreate it and delete the old one?
>
> You don't need to do anything to the PHI node.
>

Understood!

Thanks and Regards,
Shubham


> Richard.
>
> >Thanks and Regards,
> >Shubham
>
>

      reply	other threads:[~2021-12-17 11:02 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-16  6:33 Shubham Narlawar
2021-12-16 12:58 ` Richard Biener
2021-12-17 11:02   ` Shubham Narlawar [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='CAN=hqDB4fY9B1ppNdNTHK0hY5hA42+0Z1bPihJvF=pf-jqt3uw@mail.gmail.com' \
    --to=gsocshubham@gmail.com \
    --cc=gcc@gcc.gnu.org \
    --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).