[Bug tree-optimization/115354] [14/15 Regression] Large -Os code size increase related to -ftree-sra since r14-5831-gaae723d360ca26

2024-06-05 Thread gus at projectgus dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115354 --- Comment #3 from Angus Gratton --- Sorry, my notes about LTO builds look like they were wrong. MicroPython LTO builds with -Os -fno-tree-sra seem to consistently reduce code size as well, for both the "before" and "after" GCC versions, inclu

[Bug tree-optimization/115354] [14/15 Regression] Large -Os code size increase related to -ftree-sra since r14-5831-gaae723d360ca26

2024-06-05 Thread gus at projectgus dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115354 --- Comment #2 from Angus Gratton --- Thanks Richard, that's very helpful context (I don't quite have my head around SRA to be honest!) For non-LTO MicroPython builds (mostly C, no C++), building with -Os -fno-tree-sra has almost no impact (for

[Bug tree-optimization/115354] New: Large -Os code size increase related to -ftree-sra

2024-06-04 Thread gus at projectgus dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115354 Bug ID: 115354 Summary: Large -Os code size increase related to -ftree-sra Product: gcc Version: 14.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Compon

[Bug target/115353] Missed thumb2 table branch instruction optimisations

2024-06-04 Thread gus at projectgus dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115353 --- Comment #1 from Angus Gratton --- Created attachment 58352 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58352&action=edit Larger test case that previously generated tbh

[Bug target/115353] New: Missed thumb2 table branch instruction optimisations

2024-06-04 Thread gus at projectgus dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115353 Bug ID: 115353 Summary: Missed thumb2 table branch instruction optimisations Product: gcc Version: 14.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Comp