https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109610
--- Comment #11 from Segher Boessenkool <segher at gcc dot gnu.org> --- (In reply to Hongtao.liu from comment #5) > One solution is add an peephole for handle such redudancy. Not okay. > If powerpc maintainer doesn't like this way, another alternative is add a > target hook in RA to still use GENEREAL_REGS for other targets, but use > NO_REGS only for x86. Also not okay. Please solve the fundamental problem in cost estimation you created, don't let all targets try to fix it in different ways :-(