Skip to content
  • Evan Cheng's avatar
    Local spiller optimization: · 35ff7937
    Evan Cheng authored
    Turn a store folding instruction into a load folding instruction. e.g.
         xorl  %edi, %eax
         movl  %eax, -32(%ebp)
         movl  -36(%ebp), %eax
         orl   %eax, -32(%ebp)
    =>
         xorl  %edi, %eax
         orl   -36(%ebp), %eax
         mov   %eax, -32(%ebp)
    This enables the unfolding optimization for a subsequent instruction which will
    also eliminate the newly introduced store instruction.
    
    llvm-svn: 43192
    35ff7937
Loading