https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109858
--- Comment #9 from Kewen Lin <linkw at gcc dot gnu.org> --- (In reply to Kewen Lin from comment #6) > (In reply to Hongtao.liu from comment #5) > > (In reply to Kewen Lin from comment #3) > > > (In reply to Hongtao.liu from comment #2) > > > > Does https://gcc.gnu.org/pipermail/gcc-patches/2023-May/617431.html > > > > help? > > > > > > Sorry, I just measured those degraded bmks with this fix, the results > > > showed > > > it didn't help. > > > > Sorry for the inconvience, could you try again with attached patch. > > The patch will still use GENERAL_REGS when hard_regno_mode_ok for mode and > > GENERAL_REGS(which is the case in PR109610), hope it can also fix this > > regression. > > Thanks for the prompt fix, I'll do the perf evaluation once the perf boxes > get released (they are used by others now) and get back to you. I re-evaluated all SPEC2017 bmks on Power9 and Power10 with this patch (r14-171 vs. r14-172 + this fix), and confirmed it does fix all three degradation found before and it doesn't cause any new degradation (btw, all the >1% improvements are gone as well, all the results are neutral).