[CodeGen] skip lifetime end marker in isInTailCallPosition
authorRobert Lougher <rob.lougher@gmail.com>
Wed, 24 Oct 2018 17:03:19 +0000 (17:03 +0000)
committerRobert Lougher <rob.lougher@gmail.com>
Wed, 24 Oct 2018 17:03:19 +0000 (17:03 +0000)
commit18bfb3a5ec410d4675eb1a7c913dfeb60017df3f
tree2d1b2722ef37ad8d402434722f98563d5c084055
parentd1fe437cf190c8f70c1506d9bfd4c3b9d94c405f
[CodeGen] skip lifetime end marker in isInTailCallPosition

A lifetime end intrinsic between a tail call and the return should not
prevent the call from being tail call optimized.

Differential Revision: https://reviews.llvm.org/D53519

llvm-svn: 345163
llvm/lib/CodeGen/Analysis.cpp
llvm/test/CodeGen/X86/tailcall-lifetime-end.ll [new file with mode: 0644]