On 9/22/23 06:56, Hongyu Wang wrote:
Like base_reg_class, INDEX_REG_CLASS also does not support backend insn.
Add index_reg_class with insn argument for lra/reload usage.

gcc/ChangeLog:

        * addresses.h (index_reg_class): New wrapper function like
        base_reg_class.
        * doc/tm.texi: Document INSN_INDEX_REG_CLASS.
        * doc/tm.texi.in: Ditto.
        * lra-constraints.cc (index_part_to_reg): Pass index_class.
        (process_address_1): Calls index_reg_class with curr_insn and
        replace INDEX_REG_CLASS with its return value index_cl.
        * reload.cc (find_reloads_address): Likewise.
        (find_reloads_address_1): Likewise.

The patch is ok for me to commit it to the trunk.  Thank you.

So all changes to the RA have been reviewed.  You just need an approval to the rest patches from an x86-64 maintainer.

Reply via email to