]> granicus.if.org Git - llvm/commit
[CodeGenPrepare] Handle all debug calls in dupRetToEnableTailCallOpts()
authorJonas Paulsson <paulsson@linux.vnet.ibm.com>
Tue, 29 Jan 2019 09:03:35 +0000 (09:03 +0000)
committerJonas Paulsson <paulsson@linux.vnet.ibm.com>
Tue, 29 Jan 2019 09:03:35 +0000 (09:03 +0000)
commit1bf1b6f36e7b494516c27663f4d582498ebcbe11
tree98f16bfba929c895e5e9dab6ac36f26fecbc48b8
parent4f20053b1ce835b7211122f52bf16327488cd75b
[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]