Skip to content
  • Jakob Stoklund Olesen's avatar
    New virtual registers created for spill intervals should inherit allocation... · 020d8d4c
    Jakob Stoklund Olesen authored
    New virtual registers created for spill intervals should inherit allocation hints from the original register.
    
    This helps us avoid silly copies when rematting values that are copied to a physical register:
    
    leaq	_.str44(%rip), %rcx
    movq	%rcx, %rsi
    call	_strcmp
    
    becomes:
    
    leaq	_.str44(%rip), %rsi
    call	_strcmp
    
    The coalescer will not touch the movq because that would tie down the physical register.
    
    llvm-svn: 90163
    020d8d4c
Loading