Skip to content
  • Jakob Stoklund Olesen's avatar
    Be more aggressive about following hints. · 4931bbc6
    Jakob Stoklund Olesen authored
    RAGreedy::tryAssign will now evict interference from the preferred
    register even when another register is free.
    
    To support this, add the EvictionCost struct that counts how many hints
    are broken by an eviction. We don't want to break one hint just to
    satisfy another.
    
    Rename canEvict to shouldEvict, and add the first bit of eviction policy
    that doesn't depend on spill weights: Always make room in the preferred
    register as long as the evictees can be split and aren't already
    assigned to their preferred register.
    
    Also make the CSR avoidance more accurate. When looking for a cheaper
    register it is OK to use a new volatile register. Only CSR aliases that
    have never been used before should be avoided.
    
    llvm-svn: 134735
    4931bbc6
Loading