[Bug ipa/99373] New: [missed optimization] dead code not eliminated from short circuiting

2021-03-03 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99373 Bug ID: 99373 Summary: [missed optimization] dead code not eliminated from short circuiting Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal

[Bug ipa/99373] unused static function not being removed in some cases after optimization

2021-03-04 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99373 --- Comment #2 from Zhendong Su --- The following might be the same/related. The dead call is eliminated if b is changed to: static int b(int *c) { foo(); d++; } [623] % gcctk -O3 -S small.c [624] % [624] % cat small.c extern void foo(v

[Bug ipa/99419] New: possible missed optimization for dead code elimination

2021-03-05 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99419 Bug ID: 99419 Summary: possible missed optimization for dead code elimination Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Com

[Bug tree-optimization/99428] New: possible missed optimization for dead code elimination

2021-03-05 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99428 Bug ID: 99428 Summary: possible missed optimization for dead code elimination Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Com

[Bug tree-optimization/99751] New: wrong code at -O1

2021-03-24 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99751 Bug ID: 99751 Summary: wrong code at -O1 Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization A

[Bug ipa/99776] New: missed optimization for dead code elimination at -O3 (vs. -O1)

2021-03-25 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99776 Bug ID: 99776 Summary: missed optimization for dead code elimination at -O3 (vs. -O1) Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal

[Bug tree-optimization/99776] missed optimization for dead code elimination at -O3 (vs. -O1)

2021-03-26 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99776 --- Comment #3 from Zhendong Su --- Awesome! Thanks for looking into this so quickly, Richard!

[Bug ipa/99788] New: missed optimization for dead code elimination at -O3 (vs. -O1)

2021-03-26 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99788 Bug ID: 99788 Summary: missed optimization for dead code elimination at -O3 (vs. -O1) Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal

[Bug tree-optimization/99793] New: missed optimization for dead code elimination at -Os, -O2 and -O3 (vs. -O1)

2021-03-26 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99793 Bug ID: 99793 Summary: missed optimization for dead code elimination at -Os, -O2 and -O3 (vs. -O1) Product: gcc Version: unknown Status: UNCONFIRMED Severity: n

[Bug ipa/99834] New: missed optimization for dead code elimination at -O3 (vs. -O2)

2021-03-30 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99834 Bug ID: 99834 Summary: missed optimization for dead code elimination at -O3 (vs. -O2) Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal

[Bug tree-optimization/99835] New: missed optimization for dead code elimination at -O3 (vs. -O1)

2021-03-30 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99835 Bug ID: 99835 Summary: missed optimization for dead code elimination at -O3 (vs. -O1) Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal

[Bug ipa/99834] missed optimization for dead code elimination at -O3 (vs. -O2)

2021-03-31 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99834 --- Comment #2 from Zhendong Su --- Hi Richard and all, thanks for analyzing these reports! I have some more cases, and wonder whether you folks would prefer that I open a meta issue report and append these (and others that we find) to that rep

[Bug ipa/99862] New: [meta-issue] various missed optimizations for dead code elimination

2021-04-01 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99862 Bug ID: 99862 Summary: [meta-issue] various missed optimizations for dead code elimination Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal

[Bug ipa/99862] [meta-issue] various missed optimizations for dead code elimination

2021-04-01 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99862 --- Comment #1 from Zhendong Su --- [578] % gcctk -O1 -S -o O1.s small.c [579] % gcctk -O3 -S -o O3.s small.c [580] % [580] % wc O1.s O3.s 22 43 410 O1.s 37 77 682 O3.s 59 120 1092 total [581] % [581] % grep foo O1.s [582] % grep f

[Bug ipa/99862] [meta-issue] various missed optimizations for dead code elimination

2021-04-01 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99862 --- Comment #2 from Zhendong Su --- [659] % gcctk -O1 -S -o O1.s small.c [660] % gcctk -O3 -S -o O3.s small.c [661] % [661] % wc O1.s O3.s 40 86 599 O1.s 68 138 1047 O3.s 108 224 1646 total [662] % [662] % grep foo O1.s [663] % grep f

[Bug ipa/99862] [meta-issue] various missed optimizations for dead code elimination

2021-04-02 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99862 --- Comment #4 from Zhendong Su --- (In reply to Eric Gallager from comment #3) > generally meta-bugs are created to collect other issues under their "Depends > On" field; do you have any other bug numbers to add here? Hi Eric, no, I don't, but

[Bug tree-optimization/99943] New: wrong code at -Os

2021-04-06 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99943 Bug ID: 99943 Summary: wrong code at -Os Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization A

[Bug ipa/99986] New: missed optimization for dead code elimination at -O3 (vs. -O1)

2021-04-09 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99986 Bug ID: 99986 Summary: missed optimization for dead code elimination at -O3 (vs. -O1) Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal

[Bug ipa/99987] New: missed optimization for dead code elimination at -O3 (vs. -O2)

2021-04-09 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99987 Bug ID: 99987 Summary: missed optimization for dead code elimination at -O3 (vs. -O2) Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal

[Bug tree-optimization/99986] missed optimization for dead code elimination at -O3 (vs. -O1)

2021-04-09 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99986 --- Comment #2 from Zhendong Su --- (In reply to Richard Biener from comment #1) > I think this is a duplicate of PR99776 since I can't reproduce with this fix > in. Thanks for looking into it, Richard! Would you mind also checking the few tes

[Bug ipa/99862] [meta-issue] various missed optimizations for dead code elimination

2021-04-09 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99862 --- Comment #9 from Zhendong Su --- > For the future please open separate bugs for separate testcases. Thanks, Richard; will do.

[Bug tree-optimization/100033] New: missed optimization for dead code elimination at -O3 (vs. -O2)

2021-04-11 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100033 Bug ID: 100033 Summary: missed optimization for dead code elimination at -O3 (vs. -O2) Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal

[Bug ipa/100034] New: missed optimization for dead code elimination at -O3 (vs. -O1, -Os, -O2)

2021-04-11 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100034 Bug ID: 100034 Summary: missed optimization for dead code elimination at -O3 (vs. -O1, -Os, -O2) Product: gcc Version: unknown Status: UNCONFIRMED Severity: no

[Bug ipa/100036] New: missed optimization for dead code elimination at -Os, -O2 and -O3 (vs. -O1)

2021-04-11 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100036 Bug ID: 100036 Summary: missed optimization for dead code elimination at -Os, -O2 and -O3 (vs. -O1) Product: gcc Version: unknown Status: UNCONFIRMED Severity:

[Bug tree-optimization/100050] New: missed optimization for dead code elimination at -O3 (vs. -O1, -Os, -O2)

2021-04-12 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100050 Bug ID: 100050 Summary: missed optimization for dead code elimination at -O3 (vs. -O1, -Os, -O2) Product: gcc Version: unknown Status: UNCONFIRMED Severity: no

[Bug tree-optimization/100051] New: missed optimization for dead code elimination at -Os, -O2 and -O3 (vs. -O1)

2021-04-12 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100051 Bug ID: 100051 Summary: missed optimization for dead code elimination at -Os, -O2 and -O3 (vs. -O1) Product: gcc Version: unknown Status: UNCONFIRMED Severity:

[Bug tree-optimization/100080] New: missed optimization for dead code elimination at -O3 (vs. -O2)

2021-04-14 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100080 Bug ID: 100080 Summary: missed optimization for dead code elimination at -O3 (vs. -O2) Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal

[Bug tree-optimization/100082] New: missed optimization for dead code elimination at -O3 (vs. -O2)

2021-04-14 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100082 Bug ID: 100082 Summary: missed optimization for dead code elimination at -O3 (vs. -O2) Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal

[Bug tree-optimization/100095] New: missed optimization for dead code elimination at -O3 (vs. -O2)

2021-04-15 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100095 Bug ID: 100095 Summary: missed optimization for dead code elimination at -O3 (vs. -O2) Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal

[Bug ipa/100100] New: missed optimization for dead code elimination at -O3 (vs. -O1, -Os, -O2)

2021-04-15 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100100 Bug ID: 100100 Summary: missed optimization for dead code elimination at -O3 (vs. -O1, -Os, -O2) Product: gcc Version: unknown Status: UNCONFIRMED Severity: no

[Bug tree-optimization/100112] New: missed optimization for dead code elimination at -O3, -Os (vs. -O1, -O2)

2021-04-16 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100112 Bug ID: 100112 Summary: missed optimization for dead code elimination at -O3, -Os (vs. -O1, -O2) Product: gcc Version: unknown Status: UNCONFIRMED Severity: no

[Bug tree-optimization/100113] New: missed optimization for dead code elimination at -O3 (vs. -O1)

2021-04-16 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100113 Bug ID: 100113 Summary: missed optimization for dead code elimination at -O3 (vs. -O1) Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal

[Bug tree-optimization/100145] New: missed optimization for dead code elimination at -O3 (vs. -O2)

2021-04-19 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100145 Bug ID: 100145 Summary: missed optimization for dead code elimination at -O3 (vs. -O2) Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal

[Bug tree-optimization/100162] New: missed optimization for dead code elimination at -O3 (vs. -O2)

2021-04-20 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100162 Bug ID: 100162 Summary: missed optimization for dead code elimination at -O3 (vs. -O2) Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal

[Bug tree-optimization/100188] New: missed optimization for dead code elimination at -O3 (vs. -O1)

2021-04-21 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100188 Bug ID: 100188 Summary: missed optimization for dead code elimination at -O3 (vs. -O1) Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal

[Bug ipa/100191] New: missed optimization for dead code elimination at -O3 (vs. -O2)

2021-04-21 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100191 Bug ID: 100191 Summary: missed optimization for dead code elimination at -O3 (vs. -O2) Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal

[Bug ipa/100220] New: missed optimization for dead code elimination at -O3 (vs. -O1, -Os, -O2)

2021-04-22 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100220 Bug ID: 100220 Summary: missed optimization for dead code elimination at -O3 (vs. -O1, -Os, -O2) Product: gcc Version: unknown Status: UNCONFIRMED Severity: no

[Bug tree-optimization/100221] New: missed optimization for dead code elimination at -O3 (vs. -O1, -Os, -O2)

2021-04-22 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100221 Bug ID: 100221 Summary: missed optimization for dead code elimination at -O3 (vs. -O1, -Os, -O2) Product: gcc Version: unknown Status: UNCONFIRMED Severity: no

[Bug tree-optimization/97695] New: wrong code at -O3 on x86_64-pc-linux-gnu

2020-11-03 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97695 Bug ID: 97695 Summary: wrong code at -O3 on x86_64-pc-linux-gnu Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-opti

[Bug ipa/97695] [11 Regression] wrong code at -O3 on x86_64-pc-linux-gnu since r11-4587-gae7a23a3fab74.

2020-11-03 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97695 --- Comment #6 from Zhendong Su --- Another repro for the same issue (as -fno-ipa-cp also avoids it): [579] % gcctk -O2 small.c; ./a.out [580] % gcctk -O3 small.c; ./a.out Aborted [581] % gcctk -O3 -fno-ipa-cp small.c; ./a.out [582] % [582] %

[Bug tree-optimization/97559] [11 Regression] ICE at -O1 and above on x86_64-pc-linux-gnu: verify_ssa failed

2020-11-03 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97559 Zhendong Su changed: What|Removed |Added CC||zhendong.su at inf dot ethz.ch --- Comment

[Bug tree-optimization/97725] New: ICE at -Os and above: tree check: expected class ‘type’, have ‘exceptional’ (error_mark) in useless_type_conversion_p, at gimple-expr.c:87

2020-11-05 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97725 Bug ID: 97725 Summary: ICE at -Os and above: tree check: expected class ‘type’, have ‘exceptional’ (error_mark) in useless_type_conversion_p, at gimple-expr.c:87 Product: gc

[Bug tree-optimization/97737] New: ICE at -Os and above: tree check: expected class ‘type’, have ‘exceptional’ (error_mark) in useless_type_conversion_p, at gimple-expr.c:88

2020-11-05 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97737 Bug ID: 97737 Summary: ICE at -Os and above: tree check: expected class ‘type’, have ‘exceptional’ (error_mark) in useless_type_conversion_p, at gimple-expr.c:88 Product: gc

[Bug tree-optimization/97737] [11 Regression] ICE at -Os and above: tree check: expected class ‘type’, have ‘exceptional’ (error_mark) in useless_type_conversion_p, at gimple-expr.c:88

2020-11-06 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97737 --- Comment #4 from Zhendong Su --- I would guess that it makes more sense to mark PR 97741 as a dup of this bug.

[Bug c/97746] ice in vect_init_pattern_stmt, at tree-vect-patterns.c:116

2020-11-07 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97746 Zhendong Su changed: What|Removed |Added CC||zhendong.su at inf dot ethz.ch --- Comment

[Bug tree-optimization/97764] New: wrong code at -O1 and above on x86_64-pc-linux-gnu

2020-11-09 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97764 Bug ID: 97764 Summary: wrong code at -O1 and above on x86_64-pc-linux-gnu Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component:

[Bug tree-optimization/97765] New: ICE at -Os: in clear_slot, at hash-table.h:891

2020-11-09 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97765 Bug ID: 97765 Summary: ICE at -Os: in clear_slot, at hash-table.h:891 Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tre

[Bug tree-optimization/97808] New: ICE at -Os and above: in clean, at tree-ssa-pre.c:2053

2020-11-12 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97808 Bug ID: 97808 Summary: ICE at -Os and above: in clean, at tree-ssa-pre.c:2053 Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Compon

[Bug tree-optimization/97821] New: wrong code with -ftree-vectorize at -O1 on x86_64-pc-linux-gnu

2020-11-13 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97821 Bug ID: 97821 Summary: wrong code with -ftree-vectorize at -O1 on x86_64-pc-linux-gnu Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal

[Bug rtl-optimization/97836] New: wrong code at -O1 on x86_64-pc-linux-gnu

2020-11-15 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97836 Bug ID: 97836 Summary: wrong code at -O1 on x86_64-pc-linux-gnu Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: rtl-optim

[Bug rtl-optimization/97836] wrong code at -O1 on x86_64-pc-linux-gnu

2020-11-15 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97836 --- Comment #1 from Zhendong Su --- Another related test that triggers the miscompilation at -Os, but not -O1: [621] % gcctk -O1 small.c; ./a.out [622] % [622] % gcctk -Os small.c; ./a.out Aborted [623] % [623] % cat small.c int a; int b(int

[Bug tree-optimization/97838] New: ICE at -O3 on x86_64-pc-linux-gnu: Segmentation fault

2020-11-15 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97838 Bug ID: 97838 Summary: ICE at -O3 on x86_64-pc-linux-gnu: Segmentation fault Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Compone

[Bug tree-optimization/97888] New: wrong code at -Os and above on x86_64-pc-linux-gnu

2020-11-18 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97888 Bug ID: 97888 Summary: wrong code at -Os and above on x86_64-pc-linux-gnu Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component:

[Bug tree-optimization/97901] New: ICE at -Os: verify_gimple failed

2020-11-18 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97901 Bug ID: 97901 Summary: ICE at -Os: verify_gimple failed Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization

[Bug ipa/98222] New: ICE at -O3 on x86_64-pc-linux-gnu: verify_cgraph_node failed

2020-12-10 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98222 Bug ID: 98222 Summary: ICE at -O3 on x86_64-pc-linux-gnu: verify_cgraph_node failed Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Pr

[Bug rtl-optimization/98229] New: ICE at -O1 in 32-bit mode on x86_64-pc-linux-gnu in decompose, at rtl.h:2282

2020-12-10 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98229 Bug ID: 98229 Summary: ICE at -O1 in 32-bit mode on x86_64-pc-linux-gnu in decompose, at rtl.h:2282 Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: nor

[Bug tree-optimization/98255] New: wrong code at -Os and above with -fPIC on x86_64-pc-linux-gnu

2020-12-12 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98255 Bug ID: 98255 Summary: wrong code at -Os and above with -fPIC on x86_64-pc-linux-gnu Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal P

[Bug tree-optimization/98256] New: ICE at -Os and above: verify_ssa failed

2020-12-12 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98256 Bug ID: 98256 Summary: ICE at -Os and above: verify_ssa failed Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optim

[Bug tree-optimization/100314] New: missed optimization for dead code elimination at -O3 (vs. -O1)

2021-04-28 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100314 Bug ID: 100314 Summary: missed optimization for dead code elimination at -O3 (vs. -O1) Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal

[Bug tree-optimization/100315] New: missed optimization for dead code elimination at -O3, -O2 (vs. -O1, -Os)

2021-04-28 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100315 Bug ID: 100315 Summary: missed optimization for dead code elimination at -O3, -O2 (vs. -O1, -Os) Product: gcc Version: unknown Status: UNCONFIRMED Severity: no

[Bug tree-optimization/100359] New: missed optimization for dead code elimination at -O3 (vs. -O2)

2021-04-30 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100359 Bug ID: 100359 Summary: missed optimization for dead code elimination at -O3 (vs. -O2) Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal

[Bug tree-optimization/100453] New: wrong code at -O1 and above

2021-05-06 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100453 Bug ID: 100453 Summary: wrong code at -O1 and above Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization

[Bug tree-optimization/100492] New: wrong code at -O3 (generated code hangs)

2021-05-09 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100492 Bug ID: 100492 Summary: wrong code at -O3 (generated code hangs) Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree

[Bug tree-optimization/100539] New: wrong code at -Os and above with "-fno-dce -fno-inline-small-functions -fno-tree-dce"

2021-05-11 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100539 Bug ID: 100539 Summary: wrong code at -Os and above with "-fno-dce -fno-inline-small-functions -fno-tree-dce" Product: gcc Version: unknown Status: UNCONFIRMED

[Bug tree-optimization/100601] New: wrong code at -O1 on x86_64-linux-gnu

2021-05-14 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100601 Bug ID: 100601 Summary: wrong code at -O1 on x86_64-linux-gnu Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-op

[Bug tree-optimization/100601] wrong code at -O1 on x86_64-linux-gnu

2021-05-17 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100601 --- Comment #2 from Zhendong Su --- (In reply to Eric Botcazou from comment #1) > Please avoid creating trivial duplicates. > > *** This bug has been marked as a duplicate of bug 100453 *** Okay Eric; I had overlooked this one.

[Bug tree-optimization/100636] New: ICE at -Os and above: tree check: expected class ‘type’, have ‘exceptional’ (error_mark) in useless_type_conversion_p, at gimple-expr.c:88

2021-05-17 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100636 Bug ID: 100636 Summary: ICE at -Os and above: tree check: expected class ‘type’, have ‘exceptional’ (error_mark) in useless_type_conversion_p, at gimple-expr.c:88 Product:

[Bug tree-optimization/100740] New: wrong code at -O1 and above on x86_64-linux-gnu

2021-05-24 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100740 Bug ID: 100740 Summary: wrong code at -O1 and above on x86_64-linux-gnu Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Componen

[Bug tree-optimization/100810] New: wrong code at -O1 and above on x86_64-linux-gnu

2021-05-28 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100810 Bug ID: 100810 Summary: wrong code at -O1 and above on x86_64-linux-gnu Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Componen

[Bug tree-optimization/100923] New: wrong code at -Os and above on x86_64-linux-gnu

2021-06-05 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100923 Bug ID: 100923 Summary: wrong code at -Os and above on x86_64-linux-gnu Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Componen

[Bug tree-optimization/100923] wrong code at -Os and above on x86_64-linux-gnu

2021-06-05 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100923 --- Comment #1 from Zhendong Su --- It seems to affect all versions since 9.*, but not 8.*.

[Bug tree-optimization/100934] New: wrong code at -O3 on x86_64-linux-gnu

2021-06-06 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100934 Bug ID: 100934 Summary: wrong code at -O3 on x86_64-linux-gnu Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-op

[Bug rtl-optimization/101086] New: ICE at -O2 and -O3 on x86_64-linux-gnu with "-ftracer -fvar-tracking-assignments -fsel-sched-pipelining -fselective-scheduling -fschedule-insns": in create_block_for

2021-06-15 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101086 Bug ID: 101086 Summary: ICE at -O2 and -O3 on x86_64-linux-gnu with "-ftracer -fvar-tracking-assignments -fsel-sched-pipelining -fselective-scheduling -fschedule-insns": in

[Bug tree-optimization/101151] New: ICE at -O1 and above on x86_64-linux-gnu: verify_ssa failed

2021-06-21 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101151 Bug ID: 101151 Summary: ICE at -O1 and above on x86_64-linux-gnu: verify_ssa failed Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal

[Bug tree-optimization/101189] New: ICE at -Os and above on x86_64-linux-gnu: in fold_cond, at vr-values.c:3471

2021-06-24 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101189 Bug ID: 101189 Summary: ICE at -Os and above on x86_64-linux-gnu: in fold_cond, at vr-values.c:3471 Product: gcc Version: unknown Status: UNCONFIRMED Severity:

[Bug tree-optimization/101202] New: ICE at -O3 on x86_64-linux-gnu: Segmentation fault

2021-06-24 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101202 Bug ID: 101202 Summary: ICE at -O3 on x86_64-linux-gnu: Segmentation fault Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Compo

[Bug tree-optimization/101223] New: wrong code at -Os and above on x86_64-linux-gnu

2021-06-26 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101223 Bug ID: 101223 Summary: wrong code at -Os and above on x86_64-linux-gnu Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Componen

[Bug tree-optimization/108574] New: wrong code at -Os and above on x86_64-linux-gnu

2023-01-27 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108574 Bug ID: 108574 Summary: wrong code at -Os and above on x86_64-linux-gnu Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Componen

[Bug tree-optimization/108574] wrong code at -Os and above on x86_64-linux-gnu

2023-01-27 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108574 --- Comment #1 from Zhendong Su --- Here is another reproducer likely for the same bug. Compiler Explorer: https://godbolt.org/z/Efvczc6f8 [556] % gcctk -O3 small.c [557] % ./a.out Floating point exception [558] % [558] % cat small.c int a,

[Bug tree-optimization/108574] wrong code at -Os and above on x86_64-linux-gnu

2023-01-27 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108574 --- Comment #2 from Zhendong Su --- Another likely related test case. Compiler Explorer: https://godbolt.org/z/G514hnMeY [537] % gcctk -O3 small.c [538] % timeout -s 9 5 ./a.out Killed [539] % gcctk -O1 small.c [540] % ./a.out [541] % [541]

[Bug tree-optimization/108582] New: ICE on valid code at -Os and above with "-fno-tree-ccp -fno-tree-dce": tree check: expected class ‘type’, have ‘exceptional’ (error_mark) in useless_type_conversion

2023-01-28 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108582 Bug ID: 108582 Summary: ICE on valid code at -Os and above with "-fno-tree-ccp -fno-tree-dce": tree check: expected class ‘type’, have ‘exceptional’ (error_mark) in

[Bug tree-optimization/108584] New: wrong code at -O2 and -O3 with "-fno-tree-ccp" on x86_64-linux-gnu

2023-01-28 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108584 Bug ID: 108584 Summary: wrong code at -O2 and -O3 with "-fno-tree-ccp" on x86_64-linux-gnu Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal

[Bug tree-optimization/108639] New: ICE on valid code at -O1 and above: in decompose, at wide-int.h:984

2023-02-02 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108639 Bug ID: 108639 Summary: ICE on valid code at -O1 and above: in decompose, at wide-int.h:984 Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal

[Bug tree-optimization/108819] New: ICE on valid code at -O1 with "-fno-tree-ccp -fno-tree-forwprop" on x86_64-linux-gnu: tree check: expected ssa_name, have integer_cst in number_of_iterations_cltz,

2023-02-16 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108819 Bug ID: 108819 Summary: ICE on valid code at -O1 with "-fno-tree-ccp -fno-tree-forwprop" on x86_64-linux-gnu: tree check: expected ssa_name, have integer_cst in nu

[Bug tree-optimization/109115] New: ICE on valid code at -O2 and -O3 on x86_64-linux-gnu: in upper_bound, at value-range.h:950

2023-03-13 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109115 Bug ID: 109115 Summary: ICE on valid code at -O2 and -O3 on x86_64-linux-gnu: in upper_bound, at value-range.h:950 Product: gcc Version: unknown Status: UNCONFIRMED

[Bug tree-optimization/109138] New: wrong code at -O1 and above on x86_64-linux-gnu

2023-03-14 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109138 Bug ID: 109138 Summary: wrong code at -O1 and above on x86_64-linux-gnu Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Componen

[Bug tree-optimization/109138] [10/11/12/13 Regression] wrong code at -O1 and above on x86_64-linux-gnu

2023-03-15 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109138 --- Comment #6 from Zhendong Su --- Oh, good catch, Jakub! And sorry for the noise.

[Bug tree-optimization/104700] New: ICE on valid code at -O2 and -O3 with -fno-tree-ccp -fno-tree-dce -fno-tree-vrp on x86_64-linux-gnu: in find_or_generate_expression, at tree-ssa-pre.cc:2795

2022-02-26 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104700 Bug ID: 104700 Summary: ICE on valid code at -O2 and -O3 with -fno-tree-ccp -fno-tree-dce -fno-tree-vrp on x86_64-linux-gnu: in find_or_generate_expression, at tree-ssa-pre.cc:2795

[Bug tree-optimization/104700] ICE on valid code at -O2 and -O3 with -fno-tree-ccp -fno-tree-dce -fno-tree-vrp on x86_64-linux-gnu: in find_or_generate_expression, at tree-ssa-pre.cc:2795

2022-02-26 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104700 --- Comment #1 from Zhendong Su --- >From Compiler Explorer: https://godbolt.org/z/PKfrMK489

[Bug tree-optimization/104700] [12 Regression] ICE on valid code at -O2 and -O3 with -fno-tree-ccp -fno-tree-dce -fno-tree-vrp on x86_64-linux-gnu: in find_or_generate_expression, at tree-ssa-pre.cc:2

2022-02-26 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104700 --- Comment #3 from Zhendong Su --- Another test without using "-fno-tree-ccp -fno-tree-dce -fno-tree-vrp": [700] % gcctk -v Using built-in specs. COLLECT_GCC=gcctk COLLECT_LTO_WRAPPER=/local/suz-local/software/local/gcc-trunk/libexec/gcc/x86_6

[Bug ipa/104813] New: ICE on valid code at -O3 on x86_64-linux-gnu: in adjust_references_in_caller, at ipa-cp.cc:4963

2022-03-06 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104813 Bug ID: 104813 Summary: ICE on valid code at -O3 on x86_64-linux-gnu: in adjust_references_in_caller, at ipa-cp.cc:4963 Product: gcc Version: unknown Status: UNCONFIRMED

[Bug ipa/104813] ICE on valid code at -O3 on x86_64-linux-gnu: in adjust_references_in_caller, at ipa-cp.cc:4963

2022-03-06 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104813 --- Comment #1 from Zhendong Su --- Compiler Explorer: https://godbolt.org/z/6cfcq4Wed

[Bug tree-optimization/105337] New: wrong code at -Os and above on x86_64-linux-gnu

2022-04-21 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105337 Bug ID: 105337 Summary: wrong code at -Os and above on x86_64-linux-gnu Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Componen

[Bug tree-optimization/105337] wrong code at -Os and above on x86_64-linux-gnu

2022-04-21 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105337 --- Comment #1 from Zhendong Su --- Compiler Explorer: https://godbolt.org/z/1bds4P7c7

[Bug tree-optimization/106414] New: wrong code at -O1 and above on x86_64-linux-gnu

2022-07-22 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106414 Bug ID: 106414 Summary: wrong code at -O1 and above on x86_64-linux-gnu Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Componen

[Bug tree-optimization/106414] [13 Regression] wrong code at -O1 and above on x86_64-linux-gnu by r13-1779

2022-07-22 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106414 --- Comment #2 from Zhendong Su --- A couple of related tests that fail at -O0: [587] % gcctk -O0 small.c [588] % ./a.out Aborted [589] % cat small.c int a, b, c, d; unsigned e; int main() { c = e = -((a && 1) ^ ~(b || 0)); if (e < -1)

[Bug tree-optimization/106521] New: ICE at -O1 with "-floop-unroll-and-jam --param unroll-jam-min-percent=0": verify_ssa failed

2022-08-03 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106521 Bug ID: 106521 Summary: ICE at -O1 with "-floop-unroll-and-jam --param unroll-jam-min-percent=0": verify_ssa failed Product: gcc Version: unknown Status: UNCONFIRMED

[Bug tree-optimization/107109] New: ICE on valid code at -O1 on x86_64-linux-gnu: in type, at value-range.h:621

2022-10-01 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107109 Bug ID: 107109 Summary: ICE on valid code at -O1 on x86_64-linux-gnu: in type, at value-range.h:621 Product: gcc Version: unknown Status: UNCONFIRMED Severity:

[Bug debug/107110] New: failure (length) with -fcompare-debug at -O1 and above

2022-10-01 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107110 Bug ID: 107110 Summary: failure (length) with -fcompare-debug at -O1 and above Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 C

[Bug tree-optimization/107109] ICE on valid code at -O1 on x86_64-linux-gnu: in type, at value-range.h:621

2022-10-02 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107109 --- Comment #1 from Zhendong Su --- Another test that only reproduces at -O2 and -O3. [508] % gcctk -v Using built-in specs. COLLECT_GCC=gcctk COLLECT_LTO_WRAPPER=/local/suz-local/software/local/gcc-trunk/libexec/gcc/x86_64-pc-linux-gnu/13.0.0/

  1   2   3   4   >