[PATCH] phiprop: Avoid proping loads into loops [PR116835]

2025-04-05 Thread Andrew Pinski
phiprop can sometimes prop loads back into loops and in some cases cause wrong code when the load was from a weak symbol as now it becomes an unconditional load before the loop. Bootstrapped and tested on x86_64-linux-gnu with no regressions. PR tree-optimization/116835 gcc/ChangeLog:

Re: [PATCH] phiprop: Avoid proping loads into loops [PR116835]

2025-04-01 Thread Richard Biener
On Tue, Apr 1, 2025 at 6:10 AM Andrew Pinski wrote: > > phiprop can sometimes prop loads back into loops > and in some cases cause wrong code when the load > was from a weak symbol as now it becomes an unconditional > load before the loop. > > Bootstrapped and tested on x86_64-linux-gnu with no re