Skip to content
  • Chris Lattner's avatar
    fix x86-64 static codegen to materialize the address of a global with movl instead · 38df005e
    Chris Lattner authored
    of lea.  It is better for code size (and presumably efficiency) to use:
    
      movl $foo, %eax
    
    rather than:
    
      leal foo, eax
    
    Both give a nice zero extending "move immediate" instruction, the former is just
    smaller.  Note that global addresses should be handled different by the x86
    backend, but I chose to follow the style already in place and add more fixme's.
    
    llvm-svn: 75403
    38df005e
Loading