https://gcc.gnu.org/g:ef7ed227fc97cd71093bb373a4d6d6368e1cc635

commit r15-7105-gef7ed227fc97cd71093bb373a4d6d6368e1cc635
Author: Denis Chertykov <cherty...@gmail.com>
Date:   Tue Jan 21 21:36:05 2025 +0400

    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:
---
 gcc/lra-spills.cc | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/gcc/lra-spills.cc b/gcc/lra-spills.cc
index 93a0c92db9fa..fc912c43ce6e 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;
              }
        }

Reply via email to