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:
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