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. Richard. >Thanks and Regards, >Shubham