llvm.org GIT mirror llvm / f6b5c1a
Don't forget these are calls git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21730 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 14 years ago
1 changed file(s) with 4 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
6363
6464 // create fib(x-1)
6565 Value *Sub = BinaryOperator::createSub(ArgX, One, "arg", RecurseBB);
66 Value *CallFibX1 = new CallInst(FibF, Sub, "fibx1", RecurseBB);
67 CallFibX1->setTailCall(true);
66 CallInst *CallFibX1 = new CallInst(FibF, Sub, "fibx1", RecurseBB);
67 CallFibX1->setTailCall();
6868
6969 // create fib(x-2)
7070 Sub = BinaryOperator::createSub(ArgX, Two, "arg", RecurseBB);
71 Value *CallFibX2 = new CallInst(FibF, Sub, "fibx2", RecurseBB);
72 CallFibX2->setTailCall(true);
71 CallInst *CallFibX2 = new CallInst(FibF, Sub, "fibx2", RecurseBB);
72 CallFibX2->setTailCall();
7373
7474
7575 // fib(x-1)+fib(x-2)