Skip to content
  • Jakob Stoklund Olesen's avatar
    Implement PPCInstrInfo::isCoalescableExtInstr(). · 0f855e42
    Jakob Stoklund Olesen authored
    The PPC::EXTSW instruction preserves the low 32 bits of its input, just
    like some of the x86 instructions. Use it to reduce register pressure
    when the low 32 bits have multiple uses.
    
    This requires a small change to PeepholeOptimizer since EXTSW takes a
    64-bit input register.
    
    This is related to PR5997.
    
    llvm-svn: 158743
    0f855e42
Loading