[Bug tree-optimization/110173] [14 Regression] Missed Dead Code Elimination when using __builtin_unreachable since r14-569-g21e2ef2dc25

2023-06-08 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110173 --- Comment #4 from Andrew Pinski --- So CCP2 now removes: Removing dead stmt:iftmp.4_9 = PHI <1(5), 0(6)> Which allows to remove all of this: [local count: 1073441178]: if (t_4(D) != 0) goto ; [50.00%] else goto ; [50.00%] [

[Bug tree-optimization/110173] [14 Regression] Missed Dead Code Elimination when using __builtin_unreachable since r14-569-g21e2ef2dc25

2023-06-08 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110173 --- Comment #3 from Andrew Pinski --- (In reply to Andrew Pinski from comment #2) > Hmm > static void i() { *h = j(); } > static int *j(unsigned o) { > > I suspect this is just might be another one of these cases where a variable > is uninitial

[Bug tree-optimization/110173] [14 Regression] Missed Dead Code Elimination when using __builtin_unreachable since r14-569-g21e2ef2dc25

2023-06-08 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110173 --- Comment #2 from Andrew Pinski --- Hmm static void i() { *h = j(); } static int *j(unsigned o) { I suspect this is just might be another one of these cases where a variable is uninitialized gets a different value now.

[Bug tree-optimization/110173] [14 Regression] Missed Dead Code Elimination when using __builtin_unreachable since r14-569-g21e2ef2dc25

2023-06-08 Thread theodort at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110173 --- Comment #1 from Theodoros Theodoridis --- *The first piece of ASM is generated by gcc 13.1, the second by gcc trunk