https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102008
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed| |2021-08-23 Ever confirmed|0 |1 Priority|P3 |P1 Status|UNCONFIRMED |NEW CC| |luoxhu at gcc dot gnu.org, | |rguenth at gcc dot gnu.org --- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> --- Oh, the late sinking pass now undoes PHI-OPTs hoist_adjacent_loads - that's ping-ponging already between phiopt2, sink1 and phiopt4. So the easiest "fix" would be to re-schedule the added sink pass before phiopt4. Of course having two transforms that work against each other in the compiler is bad in the first place.