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?

Thanks and Regards,
Shubham

Reply via email to