diff options
| author | Evan Cheng <evan.cheng@apple.com> | 2009-11-14 02:55:43 +0000 |
|---|---|---|
| committer | Evan Cheng <evan.cheng@apple.com> | 2009-11-14 02:55:43 +0000 |
| commit | 6ad7da96fefb4364aaa8dfb8c695511bdaaac85d (patch) | |
| tree | 51697f1065fb2058aff63c04fc692cc5caf13917 /llvm/lib/Target/ARM/ARMInstrInfo.h | |
| parent | e598a56d30386bd0e52d0be087ac5e7b6ee8b3e9 (diff) | |
| download | bcm5719-llvm-6ad7da96fefb4364aaa8dfb8c695511bdaaac85d.tar.gz bcm5719-llvm-6ad7da96fefb4364aaa8dfb8c695511bdaaac85d.zip | |
- 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.
llvm-svn: 88745
Diffstat (limited to 'llvm/lib/Target/ARM/ARMInstrInfo.h')
| -rw-r--r-- | llvm/lib/Target/ARM/ARMInstrInfo.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Target/ARM/ARMInstrInfo.h b/llvm/lib/Target/ARM/ARMInstrInfo.h index 9b9c0c7ce0f..431957787db 100644 --- a/llvm/lib/Target/ARM/ARMInstrInfo.h +++ b/llvm/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 |

