Skip to content
  1. May 04, 2008
  2. May 03, 2008
  3. May 02, 2008
  4. May 01, 2008
  5. Apr 30, 2008
    • Arnold Schwaighofer's avatar
      Tail call optimization improvements: · be0de34e
      Arnold Schwaighofer authored
      Move platform independent code (lowering of possibly overwritten
      arguments, check for tail call optimization eligibility) from
      target X86ISelectionLowering.cpp to TargetLowering.h and
      SelectionDAGISel.cpp.
      
      Initial PowerPC tail call implementation:
      
      Support ppc32 implemented and tested (passes my tests and
      test-suite llvm-test).  
      Support ppc64 implemented and half tested (passes my tests).
      On ppc tail call optimization is performed if 
        caller and callee are fastcc
        call is a tail call (in tail call position, call followed by ret)
        no variable argument lists or byval arguments
        option -tailcallopt is enabled
      Supported:
       * non pic tail calls on linux/darwin
       * module-local tail calls on linux(PIC/GOT)/darwin(PIC)
       * inter-module tail calls on darwin(PIC)
      If constraints are not met a normal call will be emitted.
      
      A test checking the argument lowering behaviour on x86-64 was added.
      
      llvm-svn: 50477
      be0de34e
    • Chris Lattner's avatar
      add missing #include · 9caa8c0d
      Chris Lattner authored
      llvm-svn: 50468
      9caa8c0d
    • Chris Lattner's avatar
      add a method for comparing to see if a value has a specified name. · a1d850ee
      Chris Lattner authored
      llvm-svn: 50465
      a1d850ee
  6. Apr 29, 2008
  7. Apr 28, 2008
  8. Apr 27, 2008
    • Chris Lattner's avatar
      Implement a signficant optimization for inline asm: · 22379734
      Chris Lattner authored
      When choosing between constraints with multiple options,
      like "ir", test to see if we can use the 'i' constraint and
      go with that if possible.  This produces more optimal ASM in
      all cases (sparing a register and an instruction to load it),
      and fixes inline asm like this:
      
      void test () {
        asm volatile (" %c0 %1 " : : "imr" (42), "imr"(14));
      }
      
      Previously we would dump "42" into a memory location (which
      is ok for the 'm' constraint) which would cause a problem
      because the 'c' modifier is not valid on memory operands.
      
      Isn't it great how inline asm turns 'missed optimization'
      into 'compile failed'??
      
      Incidentally, this was the todo in 
      PowerPC/2007-04-24-InlineAsm-I-Modifier.ll
      
      Please do NOT pull this into Tak.
      
      llvm-svn: 50315
      22379734
    • Chris Lattner's avatar
      Move a bunch of inline asm code out of line. · 4793515a
      Chris Lattner authored
      llvm-svn: 50313
      4793515a
    • Chris Lattner's avatar
      A few inline asm cleanups: · 724539c0
      Chris Lattner authored
        - Make targetlowering.h fit in 80 cols.
        - Make LowerAsmOperandForConstraint const.
        - Make lowerXConstraint -> LowerXConstraint
        - Make LowerXConstraint return a const char* instead of taking a string byref.
      
      llvm-svn: 50312
      724539c0
  9. Apr 25, 2008
  10. Apr 24, 2008
  11. Apr 23, 2008
  12. Apr 22, 2008
  13. Apr 21, 2008
Loading