[PATCH] D118354: [AVR][NFC] Fix incorrect register states in expanding pseudo instructions

Ben Shi via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 28 19:15:36 PST 2022


benshi001 added inline comments.


================
Comment at: llvm/lib/Target/AVR/AVRExpandPseudoInsts.cpp:2084
-    if (SrcReg == DstHiReg) {
-      MOV->getOperand(1).setIsKill();
-    }
----------------
We can not set MOV's Operand(1) to killed when SrcReg==DstHiReg, since DstHiReg is the source operand of the following ADDRdRr.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D118354/new/

https://reviews.llvm.org/D118354



More information about the llvm-commits mailing list