Skip to content

Commit 373064b

Browse files
committed
[Xtensa] Fix comment
1 parent 70197ed commit 373064b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

llvm/lib/Target/Xtensa/XtensaInstrInfo.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,8 @@ void XtensaInstrInfo::copyPhysReg(MachineBasicBlock &MBB,
116116
bool RenamableDest, bool RenamableSrc) const {
117117
unsigned Opcode;
118118

119-
// when we are copying a phys reg we want the bits for fp
119+
// The MOV instruction is not present in core ISA for AR registers,
120+
// so use OR instruction.
120121
if (Xtensa::ARRegClass.contains(DestReg, SrcReg)) {
121122
BuildMI(MBB, MBBI, DL, get(Xtensa::OR), DestReg)
122123
.addReg(SrcReg, getKillRegState(KillSrc))

0 commit comments

Comments
 (0)