Skip to content
  • Chris Lattner's avatar
    * Use the new PHINode::hasConstantValue method to simplify some code · f4dd8c44
    Chris Lattner authored
    * Teach this code to move allocas out of the loop when tail call eliminating
      a call marked 'tail'.  This implements TailCallElim/move_alloca_for_tail_call.ll
    * Do not perform this transformation if a call is marked 'tail' and if there
      are allocas that we cannot move out of the loop in #2.  Doing so would increase
      the stack usage of the function.  This implements fixes
      PR615 and TailCallElim/dont-tce-tail-marked-call.ll.
    
    llvm-svn: 22690
    f4dd8c44
Loading