OSDN Git Service

CheckTailCallReturnConstraints is missing a check on the
authorArnold Schwaighofer <arnold.schwaighofer@gmail.com>
Mon, 15 Jun 2009 14:43:36 +0000 (14:43 +0000)
committerArnold Schwaighofer <arnold.schwaighofer@gmail.com>
Mon, 15 Jun 2009 14:43:36 +0000 (14:43 +0000)
commit5d2c01e48afba59be7bd0eaa10db784bf2073c20
tree3d1c5866f4ff7d6fd5d7744956625ea9b91ecb87
parentc457b65087cd79d74c8eab2a3fa4bbf0ba940c1a
CheckTailCallReturnConstraints is missing a check on the
incomming chain of the RETURN node. The incomming chain must
be the outgoing chain of the CALL node. This causes the
backend to identify tail calls that are not tail calls. This
patch fixes this.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73387 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/TargetLowering.cpp
test/CodeGen/X86/2009-06-15-not-a-tail-call.ll [new file with mode: 0644]