Skip to content
  • Chris Lattner's avatar
    Handle passing constant integers to functions much more efficiently. Instead · 1f4642c4
    Chris Lattner authored
    of generating this code:
    
            mov %EAX, 4
            mov DWORD PTR [%ESP], %EAX
            mov %AX, 123
            movsx %EAX, %AX
            mov DWORD PTR [%ESP + 4], %EAX
            call Y
    
    we now generate:
            mov DWORD PTR [%ESP], 4
            mov DWORD PTR [%ESP + 4], 123
            call Y
    
    Which hurts the eyes less.  :)
    
    Considering that register pressure around call sites is already high (with all
    of the callee clobber registers n stuff), this may help a lot.
    
    llvm-svn: 12028
    1f4642c4
Loading