Fix MachineSink to be able to sink instructions that use physical registers
authorDan Gohman <gohman@apple.com>
Fri, 25 Sep 2009 22:53:29 +0000 (22:53 +0000)
committerDan Gohman <gohman@apple.com>
Fri, 25 Sep 2009 22:53:29 +0000 (22:53 +0000)
commit19778e7558bc161b87920c5be9cc01bb84a08de2
treeaba6cd78207de15e1d2e27d56f3cc900f420e2af
parentd1c37f5b2099233dc337f8b652de70d36e8f3b2c
Fix MachineSink to be able to sink instructions that use physical registers
which have no defs anywhere in the function. In particular, this fixes sinking
of instructions that reference RIP on x86-64, which is currently being modeled
as a register.

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