Skip to content
  1. Aug 04, 2009
    • Dan Gohman's avatar
      Propogate the Depth argument when calling · 15873a8f
      Dan Gohman authored
      TLI.computeMaskedBitsForTargetNode from ComputeMaskedBits, since
      the former may call back into the latter. This fixes a major
      compile time problem on a testcase that happnened to hit this
      in a particularly bad way, PR4643.
      
      llvm-svn: 78023
      15873a8f
  2. Aug 03, 2009
  3. Aug 02, 2009
    • Dan Gohman's avatar
      Avoid forming a SELECT_CC in a type that the target doesn't · 3f323847
      Dan Gohman authored
      support. This isn't immediately interesting, because Legalize
      ends up lowering SELECT_CC if the target doesn't support it,
      but this simplifies the process.
      
      Also, if the SELECT_CC would be expanded in Legalize, it
      can potentially end up with two copies of the condition
      expression. By leaving it as SELECT+SETCC, the SELECT can be
      expanded into two SELECTs that use a single SETCC.
      
      The two comparisons are usually CSE'd, but depending on
      when various expressions get legalized, the comparison
      expression could involve calls to library functions, such
      that the comparison expression may not be able to be CSE'd.
      This will be needed by a future patch.
      
      llvm-svn: 77896
      3f323847
  4. Aug 01, 2009
  5. Jul 31, 2009
  6. Jul 30, 2009
    • Sanjiv Gupta's avatar
      Allow targets to define libcall names for mem(cpy,set,move) intrinsics, rather... · a53e686d
      Sanjiv Gupta authored
      Allow targets to define libcall names for mem(cpy,set,move) intrinsics, rather than hardcoding them in DAG lowering.
      
      llvm-svn: 77586
      a53e686d
    • Evan Cheng's avatar
      Optimize some common usage patterns of atomic built-ins __sync_add_and_fetch()... · e62288fd
      Evan Cheng authored
      Optimize some common usage patterns of atomic built-ins __sync_add_and_fetch() and __sync_sub_and_fetch. 
      
      When the return value is not used (i.e. only care about the value in the memory), x86 does not have to use add to implement these. Instead, it can use add, sub, inc, dec instructions with the "lock" prefix.
      
      This is currently implemented using a bit of instruction selection trick. The issue is the target independent pattern produces one output and a chain and we want to map it into one that just output a chain. The current trick is to select it into a merge_values with the first definition being an implicit_def. The proper solution is to add new ISD opcodes for the no-output variant. DAG combiner can then transform the node before it gets to target node selection.
      
      Problem #2 is we are adding a whole bunch of x86 atomic instructions when in fact these instructions are identical to the non-lock versions. We need a way to add target specific information to target nodes and have this information carried over to machine instructions. Asm printer (or JIT) can use this information to add the "lock" prefix.
      
      llvm-svn: 77582
      e62288fd
    • Owen Anderson's avatar
      Move types back to the 2.5 API. · 4056ca95
      Owen Anderson authored
      llvm-svn: 77516
      4056ca95
  7. Jul 29, 2009
  8. Jul 28, 2009
    • Owen Anderson's avatar
      Return ConstantVector to 2.5 API. · 4aa3295a
      Owen Anderson authored
      llvm-svn: 77366
      4aa3295a
    • Owen Anderson's avatar
      Change ConstantArray to 2.5 API. · c2c7932c
      Owen Anderson authored
      llvm-svn: 77347
      c2c7932c
    • Chris Lattner's avatar
      Rip all of the global variable lowering logic out of TargetAsmInfo. Since · 5e693ed0
      Chris Lattner authored
      it is highly specific to the object file that will be generated in the end,
      this introduces a new TargetLoweringObjectFile interface that is implemented
      for each of ELF/MachO/COFF/Alpha/PIC16 and XCore.
      
      Though still is still a brutal and ugly refactoring, this is a major step
      towards goodness.
      
      This patch also:
      1. fixes a bunch of dangling pointer problems in the PIC16 backend.
      2. disables the TargetLowering copy ctor which PIC16 was accidentally using.
      3. gets us closer to xcore having its own crazy target section flags and
         pic16 not having to shadow sections with its own objects.
      4. fixes wierdness where ELF targets would set CStringSection but not
         CStringSection_.  Factor the code better.
      5. fixes some bugs in string lowering on ELF targets.
      
      llvm-svn: 77294
      5e693ed0
  9. Jul 27, 2009
  10. Jul 26, 2009
  11. Jul 25, 2009
  12. Jul 24, 2009
  13. Jul 23, 2009
    • Chris Lattner's avatar
      "fix" PR4612, which is a crash on: · 308c7896
      Chris Lattner authored
      %0 = malloc [3758096384 x i32]
      
      The "malloc" instruction doesn't support 64-bits correctly (see PR715),
      and should be removed.  Victor is actively working on fixing this, in 
      the meantime just don't crash.
      
      llvm-svn: 76899
      308c7896
  14. Jul 22, 2009
  15. Jul 21, 2009
Loading