- Change TargetInstrInfo::reMaterialize to pass in TargetRegisterInfo.
authorEvan Cheng <evan.cheng@apple.com>
Sat, 14 Nov 2009 02:55:43 +0000 (02:55 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Sat, 14 Nov 2009 02:55:43 +0000 (02:55 +0000)
commitd57cdd5683ea926e489067364fb7ffe5fd5d35ee
tree61789ba40d1ea3b318e423f82bc50720f4a114d2
parent4ec01b268e85b62b0eabe27d8fd97e8066a81b8f
- Change TargetInstrInfo::reMaterialize to pass in TargetRegisterInfo.
- If destination is a physical register and it has a subreg index, use the
  sub-register instead.
This fixes PR5423.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@88745 91177308-0d34-0410-b5e6-96231b3b80d8
13 files changed:
include/llvm/Target/TargetInstrInfo.h
lib/CodeGen/PreAllocSplitting.cpp
lib/CodeGen/SimpleRegisterCoalescing.cpp
lib/CodeGen/TargetInstrInfoImpl.cpp
lib/CodeGen/TwoAddressInstructionPass.cpp
lib/CodeGen/VirtRegRewriter.cpp
lib/Target/ARM/ARMBaseInstrInfo.cpp
lib/Target/ARM/ARMBaseInstrInfo.h
lib/Target/ARM/ARMInstrInfo.cpp
lib/Target/ARM/ARMInstrInfo.h
lib/Target/X86/X86InstrInfo.cpp
lib/Target/X86/X86InstrInfo.h
test/CodeGen/ARM/2009-11-07-SubRegAsmPrinting.ll