Skip to content
  • Evan Cheng's avatar
    Copy coalescing change to prevent a physical register from being pin to a · b881bdab
    Evan Cheng authored
    long live interval that has low usage density.
    1. Change order of coalescing to join physical registers with virtual
       registers first before virtual register intervals become too long.
    2. Check size and usage density to determine if it's worthwhile to join.
    3. If joining is aborted, assign virtual register live interval allocation
       preference field to the physical register.
    4. Register allocator should try to allocate to the preferred register
       first (if available) to create identify moves that can be eliminated.
    
    llvm-svn: 36218
    b881bdab
Loading