Correctly preserve the input chain for potential tailcall nodes whose
authorLang Hames <lhames@gmail.com>
Mon, 13 May 2013 10:21:19 +0000 (10:21 +0000)
committerLang Hames <lhames@gmail.com>
Mon, 13 May 2013 10:21:19 +0000 (10:21 +0000)
commitd26c93d3a8a484c5b42f06163ae5de787f0ac276
tree7ae10e65892092069a7dc2818de9ef0702715efd
parentb99052ce4a75a3eac638afcd5171903514aa28e9
Correctly preserve the input chain for potential tailcall nodes whose
return values are bitcasts.

The chain had previously been being clobbered with the entry node to
the dag, which sometimes caused other code in the function to be
erroneously deleted when tailcall optimization kicked in.

<rdar://problem/13827621>

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181696 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMISelLowering.cpp
test/CodeGen/ARM/call-tc.ll