OSDN Git Service

[Debugify] Add debug intrinsics before terminating musttail calls
authorVedant Kumar <vsk@apple.com>
Mon, 4 Jun 2018 03:33:01 +0000 (03:33 +0000)
committerVedant Kumar <vsk@apple.com>
Mon, 4 Jun 2018 03:33:01 +0000 (03:33 +0000)
commit4f55de6f81339a76c4eda767234952da1086dd52
treeecf7d5cac492e3c34df7cb8bcf16aee5a2c9e9d4
parentf88b709c4a5ec942f5112e3ca107d4b049273685
[Debugify] Add debug intrinsics before terminating musttail calls

After r333856, opt -debugify would just stop emitting debug value
intrinsics after encountering a musttail call. This wasn't sufficient to
avoid verifier failures.

Debug value intrinicss for all instructions preceding a musttail call
must also be emitted before the musttail call.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@333866 91177308-0d34-0410-b5e6-96231b3b80d8
test/Transforms/InstCombine/musttail-thunk.ll
tools/opt/Debugify.cpp