Skip to content

Commit de50c22

Browse files
committed
Rephrase comments
1 parent 4d9d9c7 commit de50c22

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

llvm/lib/Target/AArch64/GISel/AArch64InstructionSelector.cpp

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5976,14 +5976,15 @@ bool AArch64InstructionSelector::selectBuildVector(MachineInstr &I,
59765976
RegOp.setReg(Reg);
59775977
RBI.constrainGenericRegister(DstReg, *RC, MRI);
59785978
} else if (PrevMI) {
5979-
// We don't need a subregister copy. Save a copy by re-using the
5980-
// destination register on the final insert.
5979+
// PrevMI is not nullptr, so we have generated inserts and don't need a
5980+
// subregister copy. Save a copy by re-using the destination register on the
5981+
// final insert.
59815982
PrevMI->getOperand(0).setReg(I.getOperand(0).getReg());
59825983
constrainSelectedInstRegOperands(*PrevMI, TII, TRI, RBI);
59835984
} else {
5984-
// All the operands (other than the first one) to the G_BUILD_VECTOR were
5985-
// undef, so PrevMI is nullptr. Emit a copy from the vector made from the
5986-
// first operand to the destination register.
5985+
// All the operands (except the first one) to the G_BUILD_VECTOR were
5986+
// undef, so PrevMI is nullptr. Emit a copy to the destination register
5987+
// from the first operand.
59875988
const TargetRegisterClass *RC =
59885989
getRegClassForTypeOnBank(DstTy, *RBI.getRegBank(DstVec, MRI, TRI));
59895990
Register DstReg = I.getOperand(0).getReg();

0 commit comments

Comments
 (0)