[X86] Copy imp-uses when folding tailcall into conditional branch.
authorAhmed Bougacha <ahmed.bougacha@gmail.com>
Mon, 12 Sep 2016 16:05:27 +0000 (16:05 +0000)
committerAhmed Bougacha <ahmed.bougacha@gmail.com>
Mon, 12 Sep 2016 16:05:27 +0000 (16:05 +0000)
commit45bfa8772f47ac9bc6d738cf3b87e4b2b19813a4
tree95d73b6ef25374bab49066f8901224b3a3ab4d62
parent7bd37870bc2c501e4587cf5ca2b69b77346df95a
[X86] Copy imp-uses when folding tailcall into conditional branch.

r280832 added 32-bit support for emitting conditional tail-calls, but
dropped imp-used parameter registers.  This went unnoticed until
r281113, which added 64-bit support, as this is only exposed with
parameter passing via registers.

Don't drop the imp-used parameters.

llvm-svn: 281223
llvm/lib/Target/X86/X86InstrInfo.cpp
llvm/test/CodeGen/X86/tail-call-conditional.mir [new file with mode: 0644]