OSDN Git Service

EntryExitInstrumenter: Handle musttail calls
authorHans Wennborg <hans@hanshq.net>
Fri, 6 Apr 2018 10:14:09 +0000 (10:14 +0000)
committerHans Wennborg <hans@hanshq.net>
Fri, 6 Apr 2018 10:14:09 +0000 (10:14 +0000)
commit5f10dae16e0979ceea71ff2c89f9704b200a8da0
treecb23f5dc1ace5a7c062164dc8e9acc549a15205c
parentdeaebefed8d3cd2ee32f6b83ace4d43a9d0464ee
EntryExitInstrumenter: Handle musttail calls

Inserting instrumentation between a musttail call and ret instruction
would create invalid IR. Instead, treat musttail calls as function
exits.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@329385 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Utils/EntryExitInstrumenter.cpp
test/Transforms/EntryExitInstrumenter/mcount.ll