[CodeGenPrepare] Handle all debug calls in dupRetToEnableTailCallOpts()
commit4f8931ee2e4b52b5c9e1cf2c3930263e39a9146d
authorJonas Paulsson <paulsson@linux.vnet.ibm.com>
Tue, 29 Jan 2019 09:03:35 +0000 (29 09:03 +0000)
committerJonas Paulsson <paulsson@linux.vnet.ibm.com>
Tue, 29 Jan 2019 09:03:35 +0000 (29 09:03 +0000)
tree98f16bfba929c895e5e9dab6ac36f26fecbc48b8
parent07ed572df660e86b975b92cb5b7658bdccbee75a
[CodeGenPrepare]  Handle all debug calls in dupRetToEnableTailCallOpts()

This patch makes sure that a debug value that is after the bitcast in
dupRetToEnableTailCallOpts() is also skipped.

The reduced test case is from SPEC-2006 on SystemZ.

Review: Vedant Kumar, Wolfgang Pieb
https://reviews.llvm.org/D57050

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@352462 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CodeGenPrepare.cpp
test/CodeGen/SystemZ/debuginstr-cgp.mir [new file with mode: 0644]