OSDN Git Service

[FunctionComparator] Consider tail call kinds
authorVedant Kumar <vsk@apple.com>
Thu, 17 Jan 2019 00:29:14 +0000 (00:29 +0000)
committerVedant Kumar <vsk@apple.com>
Thu, 17 Jan 2019 00:29:14 +0000 (00:29 +0000)
commitc6f4c7e8bc7d44d3ea0f2b185f5b5344355d7e20
tree6f1425882cbb4d8b89d25371d3a1da48af968015
parent0981c63e49694806fadae7dc1fc8a242a7be2cd2
[FunctionComparator] Consider tail call kinds

Essentially, do not treat `call` and `musttail call` as the same thing.

As a drive-by, fold CallInst and InvokeInst handling together using the
CallSite helper.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@351405 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Utils/FunctionComparator.cpp
test/Transforms/MergeFunc/tailcall.ll [new file with mode: 0644]