https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109351

--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by hongtao Liu <liuho...@gcc.gnu.org>:

https://gcc.gnu.org/g:727be65ec40e119a7c864bfaa5d6a73547863c06

commit r14-57-g727be65ec40e119a7c864bfaa5d6a73547863c06
Author: liuhongt <hongtao....@intel.com>
Date:   Mon Apr 3 10:54:55 2023 +0800

    Check hard_regno_mode_ok before setting lowest memory move cost for the
mode with different reg classes.

    There's a potential performance issue when backend returns some
    unreasonable value for the mode which can be never be allocate with
    reg class.

    gcc/ChangeLog:

            PR rtl-optimization/109351
            * ira.cc (setup_class_subset_and_memory_move_costs): Check
            hard_regno_mode_ok before setting lowest memory move cost for
            the mode with different reg classes.

Reply via email to