Re-commit r124462 with fixes. Tail recursion elim will now dup ret into unconditional...
authorEvan Cheng <evan.cheng@apple.com>
Sat, 29 Jan 2011 01:29:26 +0000 (01:29 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Sat, 29 Jan 2011 01:29:26 +0000 (01:29 +0000)
commit5e6940788fb2f8cf3ce4219d3ac0f78317f54696
tree1bd84907741911ab97ccfede07b0fe05dcca2981
parent04317cc618aeae28910916469e074d8ce0fcaa03
Re-commit r124462 with fixes. Tail recursion elim will now dup ret into unconditional predecessor to enable TCE on demand.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@124518 91177308-0d34-0410-b5e6-96231b3b80d8
13 files changed:
include/llvm/Transforms/Utils/BasicBlockUtils.h
lib/CodeGen/TailDuplication.cpp
lib/Transforms/Scalar/TailRecursionElimination.cpp
lib/Transforms/Utils/BasicBlockUtils.cpp
lib/Transforms/Utils/SimplifyCFG.cpp
test/CodeGen/X86/loop-blocks.ll
test/Transforms/JumpThreading/and-and-cond.ll
test/Transforms/JumpThreading/and-cond.ll
test/Transforms/JumpThreading/thread-loads.ll
test/Transforms/SimplifyCFG/MagicPointer.ll
test/Transforms/SimplifyCFG/basictest.ll
test/Transforms/SimplifyCFG/switch_create.ll
test/Transforms/SimplifyCFG/switch_formation.dbg.ll