Re: [PATCH 1/2] Move copy_phi_arg_into_existing_phi to common location and use it

2023-05-04 Thread Richard Biener via Gcc-patches
On Thu, May 4, 2023 at 1:13 AM Andrew Pinski via Gcc-patches wrote: > > While improving replace_phi_edge_with_variable for the diamond formed bb > case, I need a way to copy phi entries from one edge to another as I am > removing a forwarding bb inbetween. I was pointed out that jump threading > c

[PATCH 1/2] Move copy_phi_arg_into_existing_phi to common location and use it

2023-05-03 Thread Andrew Pinski via Gcc-patches
While improving replace_phi_edge_with_variable for the diamond formed bb case, I need a way to copy phi entries from one edge to another as I am removing a forwarding bb inbetween. I was pointed out that jump threading code had copy_phi_arg_into_existing_phi which I can use. I also noticed that bot