On 4/3/23 23:13, liuhongt via Gcc-patches wrote:
There's a potential performance issue when backend returns some
unreasonable value for the mode which can be never be allocate with
reg class.

Bootstrapped and regtested on x86_64-pc-linux-gnu{-m32,}.
Ok for trunk(or GCC14 stage1)?

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.
Not a regression *and* changing register allocation. This seems like it should defer to gcc-14.

jeff

Reply via email to