Allow compatible extension attributes for tail calls
authorTim Northover <tnorthover@apple.com>
Mon, 12 Aug 2013 09:45:46 +0000 (09:45 +0000)
committerTim Northover <tnorthover@apple.com>
Mon, 12 Aug 2013 09:45:46 +0000 (09:45 +0000)
commit6a4e44f0de6e59d4458e3795c765a9001ba1b87f
tree4dd83e3e3ca5eb30d9a7a8052b05ef7f361adcdc
parent674c91bb6e704fecd905a226daef079717e7a8c1
Allow compatible extension attributes for tail calls

If the tail-callee and caller give the same bits via the same signext/zeroext
attribute then a tail-call should be allowed, since the extension has already
been done by the callee.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188159 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/Analysis.cpp
test/CodeGen/X86/sibcall.ll
test/CodeGen/X86/tail-call-attrs.ll [new file with mode: 0644]