When the result of an EXTRACT_SUBREG, INSERT_SUBREG, or SUBREG_TO_REG
authorDan Gohman <gohman@apple.com>
Tue, 14 Apr 2009 22:17:14 +0000 (22:17 +0000)
committerDan Gohman <gohman@apple.com>
Tue, 14 Apr 2009 22:17:14 +0000 (22:17 +0000)
commit5ec3b427c850d8c61aaa29e3421019bdff9b77f1
tree6ab829b839dc3b0819536ed10a746055818457dc
parent0526653956e924304f4c56ff87f72cecbb49fba2
When the result of an EXTRACT_SUBREG, INSERT_SUBREG, or SUBREG_TO_REG
operator is used by a CopyToReg to export the value to a different
block, don't reuse the CopyToReg's register for the subreg operation
result if the register isn't precisely the right class for the
subreg operation.

Also, rename the h-registers.ll test, now that there are more
than one.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@69087 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/ScheduleDAGSDNodesEmit.cpp
test/CodeGen/X86/h-registers-0.ll [new file with mode: 0644]
test/CodeGen/X86/h-registers-1.ll [new file with mode: 0644]
test/CodeGen/X86/h-registers.ll [deleted file]