OSDN Git Service

Teach CodeGenPrep to look past bitcast when it's duplicating return instruction
authorEvan Cheng <evan.cheng@apple.com>
Fri, 27 Jul 2012 21:21:26 +0000 (21:21 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Fri, 27 Jul 2012 21:21:26 +0000 (21:21 +0000)
commit9c777a484415198b3fb0dbeb57a594573b245152
tree4ea25afd74753d508392459dea518509f0b8d897
parentb18d779b35909cd5b753871f8bf2ff4f6c17ace1
Teach CodeGenPrep to look past bitcast when it's duplicating return instruction
into predecessor blocks to enable tail call optimization.

rdar://11958338

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@160894 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/CodeGenPrepare.cpp
lib/Transforms/Utils/BasicBlockUtils.cpp
test/CodeGen/X86/tailcall-cgp-dup.ll [new file with mode: 0644]