Skip to content
  • Dan Gohman's avatar
    Teach two-address lowering how to unfold a load to open up commuting · 3c1b3c61
    Dan Gohman authored
    opportunities. For example, this lets it emit this:
    
       movq (%rax), %rcx
       addq %rdx, %rcx
    
    instead of this:
    
       movq %rdx, %rcx
       addq (%rax), %rcx
    
    in the case where %rdx has subsequent uses. It's the same number
    of instructions, and usually the same encoding size on x86, but
    it appears faster, and in general, it may allow better scheduling
    for the load.
    
    llvm-svn: 106493
    3c1b3c61
Loading