projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
36c3122
)
[AVR] Do not kill the dest register for a pseudo instruction
author
Dylan McKay
<me@dylanmckay.io>
Tue, 25 Apr 2017 23:58:20 +0000
(23:58 +0000)
committer
Dylan McKay
<me@dylanmckay.io>
Tue, 25 Apr 2017 23:58:20 +0000
(23:58 +0000)
It caused the register to later be dead, which would trigger a verifier
error.
llvm-svn: 301368
llvm/lib/Target/AVR/AVRExpandPseudoInsts.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Target/AVR/AVRExpandPseudoInsts.cpp
b/llvm/lib/Target/AVR/AVRExpandPseudoInsts.cpp
index
dd87f62
..
efa5ac6
100644
(file)
--- a/
llvm/lib/Target/AVR/AVRExpandPseudoInsts.cpp
+++ b/
llvm/lib/Target/AVR/AVRExpandPseudoInsts.cpp
@@
-983,7
+983,7
@@
bool AVRExpandPseudo::expand<AVR::STWPtrRr>(Block &MBB, BlockIt MBBI) {
.addReg(SrcLoReg, getKillRegState(SrcIsKill));
auto MIBHI = buildMI(MBB, MBBI, OpHi)
- .addReg(DstReg
, getKillRegState(DstIsKill)
)
+ .addReg(DstReg)
.addImm(1)
.addReg(SrcHiReg, getKillRegState(SrcIsKill));