summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/AVR/AVRRegisterInfo.cpp
diff options
context:
space:
mode:
authorKrzysztof Parzyszek <kparzysz@codeaurora.org>2017-04-24 19:48:51 +0000
committerKrzysztof Parzyszek <kparzysz@codeaurora.org>2017-04-24 19:48:51 +0000
commit98ab4c64c429583a097adf98ae35ac4dd1dc2556 (patch)
tree70bfc17504073c2113cb0bc4fc6a5a8d9dfee583 /llvm/lib/Target/AVR/AVRRegisterInfo.cpp
parentc0197066d786db4d04baadacfb3a88244e0026f4 (diff)
downloadbcm5719-llvm-98ab4c64c429583a097adf98ae35ac4dd1dc2556.tar.gz
bcm5719-llvm-98ab4c64c429583a097adf98ae35ac4dd1dc2556.zip
Revert r301231: Accidentally committed stale files
I forgot to commit local changes before commit. llvm-svn: 301232
Diffstat (limited to 'llvm/lib/Target/AVR/AVRRegisterInfo.cpp')
-rw-r--r--llvm/lib/Target/AVR/AVRRegisterInfo.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/Target/AVR/AVRRegisterInfo.cpp b/llvm/lib/Target/AVR/AVRRegisterInfo.cpp
index 50d4ff58410..48798bd4a1d 100644
--- a/llvm/lib/Target/AVR/AVRRegisterInfo.cpp
+++ b/llvm/lib/Target/AVR/AVRRegisterInfo.cpp
@@ -78,12 +78,11 @@ BitVector AVRRegisterInfo::getReservedRegs(const MachineFunction &MF) const {
const TargetRegisterClass *
AVRRegisterInfo::getLargestLegalSuperClass(const TargetRegisterClass *RC,
const MachineFunction &MF) const {
- const TargetRegisterInfo *TRI = MF.getSubtarget().getRegisterInfo();
- if (TRI->hasType(*RC, MVT::i16)) {
+ if (RC->hasType(MVT::i16)) {
return &AVR::DREGSRegClass;
}
- if (TRI->hasType(*RC, MVT::i8)) {
+ if (RC->hasType(MVT::i8)) {
return &AVR::GPR8RegClass;
}
OpenPOWER on IntegriCloud