Skip to content

Commit 268b6e9

Browse files
committed
fixup! Use COPY.
1 parent a378ed5 commit 268b6e9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/Target/RISCV/RISCVInstrInfo.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3143,9 +3143,8 @@ void RISCVInstrInfo::getVLENFactoredAmount(MachineFunction &MF,
31433143
// If we don't have an accmulator yet, create it and copy DestReg.
31443144
if (!Acc) {
31453145
Acc = MRI.createVirtualRegister(&RISCV::GPRRegClass);
3146-
BuildMI(MBB, II, DL, get(RISCV::ADDI), Acc)
3146+
BuildMI(MBB, II, DL, get(TargetOpcode::COPY), Acc)
31473147
.addReg(DestReg)
3148-
.addImm(0)
31493148
.setMIFlag(Flag);
31503149
} else {
31513150
BuildMI(MBB, II, DL, get(RISCV::ADD), Acc)

0 commit comments

Comments
 (0)