summaryrefslogtreecommitdiff
path: root/lib/Target/ARM/ARMInstrInfo.h
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2009-11-14 02:55:43 +0000
committerEvan Cheng <evan.cheng@apple.com>2009-11-14 02:55:43 +0000
commitd57cdd5683ea926e489067364fb7ffe5fd5d35ee (patch)
tree61789ba40d1ea3b318e423f82bc50720f4a114d2 /lib/Target/ARM/ARMInstrInfo.h
parent4ec01b268e85b62b0eabe27d8fd97e8066a81b8f (diff)
downloadllvm-d57cdd5683ea926e489067364fb7ffe5fd5d35ee.tar.gz
llvm-d57cdd5683ea926e489067364fb7ffe5fd5d35ee.tar.bz2
llvm-d57cdd5683ea926e489067364fb7ffe5fd5d35ee.tar.xz
- 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
Diffstat (limited to 'lib/Target/ARM/ARMInstrInfo.h')
-rw-r--r--lib/Target/ARM/ARMInstrInfo.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Target/ARM/ARMInstrInfo.h b/lib/Target/ARM/ARMInstrInfo.h
index 9b9c0c7ce0..431957787d 100644
--- a/lib/Target/ARM/ARMInstrInfo.h
+++ b/lib/Target/ARM/ARMInstrInfo.h
@@ -37,7 +37,8 @@ public:
void reMaterialize(MachineBasicBlock &MBB, MachineBasicBlock::iterator MI,
unsigned DestReg, unsigned SubIdx,
- const MachineInstr *Orig) const;
+ const MachineInstr *Orig,
+ const TargetRegisterInfo *TRI) const;
/// getRegisterInfo - TargetInstrInfo is a superset of MRegister info. As
/// such, whenever a client has an instance of instruction info, it should