[Bug tree-optimization/101868] Incorrect reordering in -O2 with LTO

2021-08-12 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101868 Martin Liška changed: What|Removed |Added Last reconfirmed||2021-08-12 Ever confirmed|0

[Bug tree-optimization/101868] Incorrect reordering in -O2 with LTO

2021-08-12 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101868 Martin Liška changed: What|Removed |Added CC||marxin at gcc dot gnu.org,

[Bug tree-optimization/101868] Incorrect reordering in -O2 with LTO

2021-08-11 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101868 --- Comment #2 from Andrew Pinski --- (In reply to Andrew Pinski from comment #1) > Works for me on the trunk: I almost want to say this was fixed by PR 101373. Before Pre we had: if (hash_6(D) == 0) goto ; [0.00%] else goto ; [100

[Bug tree-optimization/101868] Incorrect reordering in -O2 with LTO

2021-08-11 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101868 --- Comment #1 from Andrew Pinski --- Works for me on the trunk: repro: .LFB9: .cfi_startproc subq$24, %rsp testq %rsi, %rsi je .L14 movq(%rsi), %rax testq %rax, %rax jne