Skip to content
  • Evan Cheng's avatar
    Local spiller optimization: · b6307650
    Evan Cheng authored
    Turn this:
    movswl  %ax, %eax
    movl    %eax, -36(%ebp)
    xorl    %edi, -36(%ebp)
    into
    movswl  %ax, %eax
    xorl    %edi, %eax
    movl    %eax, -36(%ebp)
    by unfolding the load / store xorl into an xorl and a store when we know the
    value in the spill slot is available in a register. This doesn't change the
    number of instructions but reduce the number of times memory is accessed.
    
    Also unfold some load folding instructions and reuse the value when similar
    situation presents itself.
    
    llvm-svn: 42947
    b6307650
Loading