Re: [PATCH] phiopt: Improve value_replacement [PR104645]

2022-04-01 Thread Richard Biener via Gcc-patches
On Fri, 1 Apr 2022, Jakub Jelinek wrote: > Hi! > > The following patch fixes the P1 regression by reusing existing > value_replacement code. That function already has code to > handle simple preparation statements (casts, and +,&,|,^ binary > assignments) before a final binary assignment (which

[PATCH] phiopt: Improve value_replacement [PR104645]

2022-04-01 Thread Jakub Jelinek via Gcc-patches
Hi! The following patch fixes the P1 regression by reusing existing value_replacement code. That function already has code to handle simple preparation statements (casts, and +,&,|,^ binary assignments) before a final binary assignment (which can be much wider range of ops). When we have e.g.