TwoAddressInstructionPass enhancement. After it converts a two address instruction...
authorEvan Cheng <evan.cheng@apple.com>
Thu, 13 Mar 2008 06:37:55 +0000 (06:37 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Thu, 13 Mar 2008 06:37:55 +0000 (06:37 +0000)
commit875357d213ab1830efa1e3e9de0fcde95df7eefc
treefd11c6f3bf547cb5d103fe4028211b74a85ab10e
parent6634e26aa11b0e2eabde8b3b463bb943364f8d9d
TwoAddressInstructionPass enhancement. After it converts a two address instruction into a 3-address one, sink it past the instruction that kills the read-mod-write register if its definition is used past the kill. This reduces the number of live register by one.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48333 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/TwoAddressInstructionPass.cpp
test/CodeGen/X86/2006-05-02-InstrSched2.ll
test/CodeGen/X86/twoaddr-pass-sink.ll [new file with mode: 0644]