[Bug tree-optimization/111799] [14 Regression] Missed Dead Code Elimination since r14-2365-g2e406f0753e

2023-10-17 Thread theodort at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111799 --- Comment #4 from Theodoros Theodoridis --- Oops, there was a bug in my reduction, here's the fixed code: https://godbolt.org/z/shxffzs8E void foo(void); typedef unsigned short uint16_t; static int b; static int c; static int *f = &b; st

[Bug tree-optimization/111799] [14 Regression] Missed Dead Code Elimination since r14-2365-g2e406f0753e

2023-10-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111799 --- Comment #3 from Andrew Pinski --- Hmm, I think we reach __builtin_unreachable always and that is confusing everything. If we inline s early on (via using the always_inline attribute). main turns into just __builtin_unreachable .

[Bug tree-optimization/111799] [14 Regression] Missed Dead Code Elimination since r14-2365-g2e406f0753e

2023-10-13 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111799 --- Comment #2 from Andrew Pinski --- (In reply to Andrew Pinski from comment #1) > Right now I get an ICE while doing -fdump-tree-ccp1-details even:during Filed PR 111800 for that ...

[Bug tree-optimization/111799] [14 Regression] Missed Dead Code Elimination since r14-2365-g2e406f0753e

2023-10-13 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111799 --- Comment #1 from Andrew Pinski --- Right now I get an ICE while doing -fdump-tree-ccp1-details even:during GIMPLE pass: ccp dump file: /app/output.cpp.034t.ccp1 : In function 'q': :42:1: internal compiler error: Segmentation fault 42 | }

[Bug tree-optimization/111799] [14 Regression] Missed Dead Code Elimination since r14-2365-g2e406f0753e

2023-10-13 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111799 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |14.0 Keywords|