On 11/19/26 9:11 AM, Jin Ma wrote:
By the way, since you mentioned RISC-V cost model changes after Stage 1,
I'd appreciate your advice on when to post some other patches.
While looking at the RISC-V code GCC generates for SPEC CPU2017 and
PyBench, I found a few ways to improve how GCC inlines memset, memcpy
and memcmp. I have about ten small optimization patches and a few fixes
for bugs I found along the way.
For example, in my SPEC CPU2017 tests with the memcmp series,
500.perlbench_r ran 0.4% to 0.5% faster and 520.omnetpp_r ran 1.5% to
2.0% faster. PyBench's CompareStrings and CompareUnicode both ran about
33% faster.
Unfortunately, I didn't have the optimization patches ready to post
before GCC 17 entered Stage 3. Would it make sense to post them for
review now and see whether any are suitable for GCC 17?
I'd suggest you go ahead and post them and we'll evaluate each
individually. Worst case we decide to defer to gcc-18.
jeff