Re: Updating phi nodes on deleting gimple statement

2021-12-17 Thread Shubham Narlawar via Gcc
On Thu, 16 Dec, 2021, 6:28 pm Richard Biener, 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 upda

Re: Updating phi nodes on deleting gimple statement

2021-12-16 Thread Richard Biener via Gcc
On December 16, 2021 7:33:37 AM GMT+01:00, Shubham Narlawar via Gcc 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

Updating phi nodes on deleting gimple statement

2021-12-15 Thread Shubham Narlawar via Gcc
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 o