[x32] Enable sibcall optimization on x32.
authorMichael Kuperstein <michael.m.kuperstein@intel.com>
Wed, 28 Jan 2015 13:38:48 +0000 (13:38 +0000)
committerMichael Kuperstein <michael.m.kuperstein@intel.com>
Wed, 28 Jan 2015 13:38:48 +0000 (13:38 +0000)
commite5b95695eaeff17e00ac84023ad743a8453f497e
treee75149f6113c240b4af374bf2b355e195021105b
parenta8104c5ab08a4a25c9c9b17642457f185ed7a5db
[x32] Enable sibcall optimization on x32.

This includes two things:
1) Fix TCRETURNdi and TCRETURN64di patterns to check the right thing (LP64 as opposed to target bitness).
2) Allow LEA64_32 in MatchingStackOffset.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227307 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelLowering.cpp
lib/Target/X86/X86InstrCompiler.td
test/CodeGen/X86/sibcall.ll