summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/AVR
diff options
context:
space:
mode:
authorFangrui Song <maskray@google.com>2019-07-12 14:58:15 +0000
committerFangrui Song <maskray@google.com>2019-07-12 14:58:15 +0000
commitb251cc0d91362ea44f00a0138998a0272791f7dc (patch)
treefb2f4a2e59243cd19de79db04acf1e1e408e9661 /llvm/lib/Target/AVR
parenta196469e67ce578df4fc9f348cc5b7221f12b239 (diff)
downloadbcm5719-llvm-b251cc0d91362ea44f00a0138998a0272791f7dc.tar.gz
bcm5719-llvm-b251cc0d91362ea44f00a0138998a0272791f7dc.zip
Delete dead stores
llvm-svn: 365903
Diffstat (limited to 'llvm/lib/Target/AVR')
-rw-r--r--llvm/lib/Target/AVR/AVRRegisterInfo.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Target/AVR/AVRRegisterInfo.cpp b/llvm/lib/Target/AVR/AVRRegisterInfo.cpp
index 58e1aa5dc29..a6b36f80485 100644
--- a/llvm/lib/Target/AVR/AVRRegisterInfo.cpp
+++ b/llvm/lib/Target/AVR/AVRRegisterInfo.cpp
@@ -233,9 +233,9 @@ void AVRRegisterInfo::eliminateFrameIndex(MachineBasicBlock::iterator II,
// No need to set SREG as dead here otherwise if the next instruction is a
// cond branch it will be using a dead register.
- New = BuildMI(MBB, std::next(II), dl, TII.get(SubOpc), AVR::R29R28)
- .addReg(AVR::R29R28, RegState::Kill)
- .addImm(Offset - 63 + 1);
+ BuildMI(MBB, std::next(II), dl, TII.get(SubOpc), AVR::R29R28)
+ .addReg(AVR::R29R28, RegState::Kill)
+ .addImm(Offset - 63 + 1);
Offset = 62;
}
OpenPOWER on IntegriCloud