[Bug tree-optimization/109002] -O1 -ftree-pre -ftree-partial-pre results in stall value

2023-03-03 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109002 --- Comment #4 from Richard Biener --- When doing partial PRE we somehow lose the effect of g = 1; we also generate weird PHIs: pretmp_20 = h; pretmp_22 = g; # prephitmp_21 = PHI # prephitmp_23 = PHI # prephitmp_24 = PHI

[Bug tree-optimization/109002] -O1 -ftree-pre -ftree-partial-pre results in stall value

2023-03-03 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109002 Richard Biener changed: What|Removed |Added Last reconfirmed||2023-03-03

[Bug tree-optimization/109002] -O1 -ftree-pre -ftree-partial-pre results in stall value

2023-03-02 Thread akihiko.odaki at daynix dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109002 --- Comment #2 from Akihiko Odaki --- Oops. Replacing i++ with i = !i removes the undefined behavior while the bug still remains.

[Bug tree-optimization/109002] -O1 -ftree-pre -ftree-partial-pre results in stall value

2023-03-02 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109002 --- Comment #1 from Andrew Pinski --- Note there will be undefined behavior when i become INT_MAx.