1. Jun 21, 2011
  2. Jun 20, 2011
    • Justin Holewinski's avatar
      PTX: Add basic register spilling code · c7b073da
      Justin Holewinski authored
      The current implementation generates stack loads/stores, which are
      really just mov instructions from/to "special" registers.  This may
      not be the most efficient implementation, compared to an approach where
      the stack registers are directly folded into instructions, but this is
      easier to implement and I have yet to see a case where ptxas is unable
      to see through this kind of register usage and know what is really
      going on.
      
      llvm-svn: 133443
      c7b073da
    • Roman Divacky's avatar
      Don't apply on PPC64 the 32bit ADDIC optimizations as there's no overflow · 254f8211
      Roman Divacky authored
      with 32bit values.
      
      llvm-svn: 133439
      254f8211
    • Douglas Gregor's avatar
      Define va_copy when in C++0x mode; C++0x picked it up from C99. · 21ad5dfc
      Douglas Gregor authored
      llvm-svn: 133438
      21ad5dfc
    • Douglas Gregor's avatar
      Define __cplusplus to 201103L when in (non-GNU) C++0x mode. · 10c1d268
      Douglas Gregor authored
      llvm-svn: 133437
      10c1d268
    • Jay Foad's avatar
      This is an automatically reduced test case that crashed in GVN, at some · 29ed2e3b
      Jay Foad authored
      point during the development of the phi operand changes.
      
      llvm-svn: 133436
      29ed2e3b
    • Jay Foad's avatar
      Change how PHINodes store their operands. · e03c05c3
      Jay Foad authored
      Change PHINodes to store simple pointers to their incoming basic blocks,
      instead of full-blown Uses.
      
      Note that this loses an optimization in SplitCriticalEdge(), because we
      can no longer walk the use list of a BasicBlock to find phi nodes. See
      the comment I removed starting "However, the foreach loop is slow for
      blocks with lots of predecessors".
      
      Extend replaceAllUsesWith() on a BasicBlock to also update any phi
      nodes in the block's successors. This mimics what would have happened
      when PHINodes were proper Users of their incoming blocks. (Note that
      this only works if OldBB->replaceAllUsesWith(NewBB) is called when
      OldBB still has a terminator instruction, so it still has some
      successors.)
      
      llvm-svn: 133435
      e03c05c3
    • Jay Foad's avatar
      Make better use of the PHINode API. · 372ad64b
      Jay Foad authored
      Change various bits of code to make better use of the existing PHINode
      API, to insulate them from forthcoming changes in how PHINodes store
      their operands.
      
      llvm-svn: 133434
      372ad64b
    • Jay Foad's avatar
      Remove the AugmentedUse struct. · 5c54d757
      Jay Foad authored
      I don't think the AugmentedUse struct buys us much, either in
      correctness or in ease of use. Ditch it, and simplify Use::getUser() and
      User::allocHungoffUses().
      
      llvm-svn: 133433
      5c54d757
    • Rafael Espindola's avatar
      Re enable 133415 with two fixes · 336e1023
      Rafael Espindola authored
      * Don't introduce a duplicated bb in the CFG
      * When making a branch unconditional, clear the PredCond array so that it
        is really unconditional.
      
      llvm-svn: 133432
      336e1023