https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117128
--- Comment #10 from Roger Sayle <roger at nextmovesoftware dot com> --- Adding the command line options -fdisable-tree-lim2 -fdisable-tree-lim4 to -Os improves the code size for the examples in the original description, comment #5 and comment #6 to the same size or (often) smaller than the reference compiler, GCC 14.2. I'll check with CSiBE if this holds for a large corpus of code (on x86_64). Depending on the results, we'll either need need improved costing or just disable these passes (after checking across multiple targets).
