From: Denis Chertykov Date: Tue, 21 Jan 2025 17:36:05 +0000 (+0400) Subject: Use `known_ge' instead of `compare_sizes_for_sort'. X-Git-Tag: basepoints/gcc-16~2448 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ef7ed227fc97cd71093bb373a4d6d6368e1cc635;p=thirdparty%2Fgcc.git Use `known_ge' instead of `compare_sizes_for_sort'. gcc/ * lra-spills.cc (assign_stack_slot_num_and_sort_pseudos): Use known_ge to compare sizes. --- diff --git a/gcc/lra-spills.cc b/gcc/lra-spills.cc index 93a0c92db9f..fc912c43ce6 100644 --- a/gcc/lra-spills.cc +++ b/gcc/lra-spills.cc @@ -394,8 +394,7 @@ assign_stack_slot_num_and_sort_pseudos (int *pseudo_regnos, int n) /* A slot with allocated memory can be shared only with equal or smaller register with equal or smaller alignment. */ if (slots[j].align >= spill_slot_alignment (mode) - && compare_sizes_for_sort (slots[j].size, - GET_MODE_SIZE (mode)) != -1) + && known_ge (slots[j].size, GET_MODE_SIZE (mode))) break; } }