[llvm] r301368 - [AVR] Do not kill the dest register for a pseudo instruction
Dylan McKay via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 25 16:58:21 PDT 2017
Author: dylanmckay
Date: Tue Apr 25 18:58:20 2017
New Revision: 301368
URL: http://llvm.org/viewvc/llvm-project?rev=301368&view=rev
Log:
[AVR] Do not kill the dest register for a pseudo instruction
It caused the register to later be dead, which would trigger a verifier
error.
Modified:
llvm/trunk/lib/Target/AVR/AVRExpandPseudoInsts.cpp
Modified: llvm/trunk/lib/Target/AVR/AVRExpandPseudoInsts.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AVR/AVRExpandPseudoInsts.cpp?rev=301368&r1=301367&r2=301368&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AVR/AVRExpandPseudoInsts.cpp (original)
+++ llvm/trunk/lib/Target/AVR/AVRExpandPseudoInsts.cpp Tue Apr 25 18:58:20 2017
@@ -983,7 +983,7 @@ bool AVRExpandPseudo::expand<AVR::STWPtr
.addReg(SrcLoReg, getKillRegState(SrcIsKill));
auto MIBHI = buildMI(MBB, MBBI, OpHi)
- .addReg(DstReg, getKillRegState(DstIsKill))
+ .addReg(DstReg)
.addImm(1)
.addReg(SrcHiReg, getKillRegState(SrcIsKill));
More information about the llvm-commits
mailing list