[Bug tree-optimization/110252] [14 Regression] Wrong code at -O2/3/s on x86_64-linux-gnu

2023-07-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110252 Andrew Pinski changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug tree-optimization/110252] [14 Regression] Wrong code at -O2/3/s on x86_64-linux-gnu

2023-07-19 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110252 --- Comment #18 from CVS Commits --- The trunk branch has been updated by Andrew Pinski : https://gcc.gnu.org/g:8c79b49cd4fa742f7be739dd21fd2aa040cc1ba3 commit r14-2650-g8c79b49cd4fa742f7be739dd21fd2aa040cc1ba3 Author: Andrew Pinski Date:

[Bug tree-optimization/110252] [14 Regression] Wrong code at -O2/3/s on x86_64-linux-gnu

2023-07-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110252 --- Comment #17 from Andrew Pinski --- *** Bug 110732 has been marked as a duplicate of this bug. ***

[Bug tree-optimization/110252] [14 Regression] Wrong code at -O2/3/s on x86_64-linux-gnu

2023-07-14 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110252 --- Comment #16 from Andrew Pinski --- Updated patch posted: https://gcc.gnu.org/pipermail/gcc-patches/2023-July/624563.html (depends on: https://gcc.gnu.org/pipermail/gcc-patches/2023-July/624562.html )

[Bug tree-optimization/110252] [14 Regression] Wrong code at -O2/3/s on x86_64-linux-gnu

2023-07-08 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110252 --- Comment #15 from Andrew Pinski --- *** Bug 110599 has been marked as a duplicate of this bug. ***

[Bug tree-optimization/110252] [14 Regression] Wrong code at -O2/3/s on x86_64-linux-gnu

2023-07-06 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110252 --- Comment #14 from Andrew Pinski --- *** Bug 110569 has been marked as a duplicate of this bug. ***

[Bug tree-optimization/110252] [14 Regression] Wrong code at -O2/3/s on x86_64-linux-gnu

2023-07-03 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110252 --- Comment #13 from Andrew Pinski --- *** Bug 110532 has been marked as a duplicate of this bug. ***

[Bug tree-optimization/110252] [14 Regression] Wrong code at -O2/3/s on x86_64-linux-gnu

2023-06-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110252 --- Comment #12 from Andrew Pinski --- *** Bug 110494 has been marked as a duplicate of this bug. ***

[Bug tree-optimization/110252] [14 Regression] Wrong code at -O2/3/s on x86_64-linux-gnu

2023-06-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110252 --- Comment #11 from Andrew Pinski --- *** Bug 110475 has been marked as a duplicate of this bug. ***

[Bug tree-optimization/110252] [14 Regression] Wrong code at -O2/3/s on x86_64-linux-gnu

2023-06-29 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110252 --- Comment #10 from Zhendong Su --- Another very likely related test. Compiler Explorer: https://godbolt.org/z/1n5nsefWx [557] % gcctk -v Using built-in specs. COLLECT_GCC=gcctk

[Bug tree-optimization/110252] [14 Regression] Wrong code at -O2/3/s on x86_64-linux-gnu

2023-06-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110252 --- Comment #9 from Andrew Pinski --- Another testcase (from PR 110446): ``` unsigned int a = 1387579096U; void sinkandcheck(unsigned b) __attribute__((noipa)); void sinkandcheck(unsigned b) { if (a != b) __builtin_abort(); }

[Bug tree-optimization/110252] [14 Regression] Wrong code at -O2/3/s on x86_64-linux-gnu

2023-06-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110252 Andrew Pinski changed: What|Removed |Added CC||jwzeng at nuaa dot edu.cn --- Comment

[Bug tree-optimization/110252] [14 Regression] Wrong code at -O2/3/s on x86_64-linux-gnu

2023-06-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110252 Andrew Pinski changed: What|Removed |Added CC||zhendong.su at inf dot ethz.ch ---

[Bug tree-optimization/110252] [14 Regression] Wrong code at -O2/3/s on x86_64-linux-gnu

2023-06-21 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110252 --- Comment #6 from Andrew Pinski --- *** Bug 110337 has been marked as a duplicate of this bug. ***

[Bug tree-optimization/110252] [14 Regression] Wrong code at -O2/3/s on x86_64-linux-gnu

2023-06-15 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110252 Richard Biener changed: What|Removed |Added Priority|P3 |P1

[Bug tree-optimization/110252] [14 Regression] Wrong code at -O2/3/s on x86_64-linux-gnu

2023-06-15 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110252 --- Comment #5 from Richard Biener --- You can probably follow what maybe_fold_comparisons_from_match_pd does, possibly exactly the same thing (or even use a similar helper extended to maybe_fold_cond_expr_from_match_pd?!)

[Bug tree-optimization/110252] [14 Regression] Wrong code at -O2/3/s on x86_64-linux-gnu

2023-06-14 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110252 --- Comment #4 from Andrew Pinski --- here is another testcase which is reduced from sel-sched.cc which we currently miscompile: ``` [[gnu::noipa]] int g(int min_need_stall) { return min_need_stall < 0 ? 1 : ((min_need_stall) < (1) ?

[Bug tree-optimization/110252] [14 Regression] Wrong code at -O2/3/s on x86_64-linux-gnu

2023-06-14 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110252 --- Comment #3 from Andrew Pinski --- smallest testcase: ``` signed char f() __attribute__((__noipa__)); signed char f() { return 0; } int main() { int g = f() - 1; int e = g < 0 ? 1 : ((g >> (8-2))!=0); asm("":"+r"(e)); if (e != 1)

[Bug tree-optimization/110252] [14 Regression] Wrong code at -O2/3/s on x86_64-linux-gnu

2023-06-14 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110252 --- Comment #2 from Andrew Pinski --- Created attachment 55323 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55323=edit Patch which fixes this issue This patch fixes the issue by temporary removing the flow sensitive information on the

[Bug tree-optimization/110252] [14 Regression] Wrong code at -O2/3/s on x86_64-linux-gnu

2023-06-14 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110252 Andrew Pinski changed: What|Removed |Added Last reconfirmed||2023-06-14 Component|c