Fix for PR7193 was overly conservative. The only case where sibcall callee
authorEvan Cheng <evan.cheng@apple.com>
Wed, 14 Jul 2010 06:44:01 +0000 (06:44 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Wed, 14 Jul 2010 06:44:01 +0000 (06:44 +0000)
commitdedd974e7e47ba3091363f9b97e4881c6ec36edf
tree28b84cd01d32ad26f3695c8071b988393ba72d56
parent7e3f0d26908b82bc6a3699251e0d38821610bca7
Fix for PR7193 was overly conservative. The only case where sibcall callee
address cannot be allocated a register is in 32-bit mode where the first
three arguments are marked inreg. In that case EAX, EDX, and ECX will be
used for argument passing.

This fixes PR7610.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108327 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelLowering.cpp
test/CodeGen/X86/sibcall-4.ll [new file with mode: 0644]