[AArch64] Update a code comment incorrectly referring to zero_reg. NFC
authorBjorn Pettersson <bjorn.a.pettersson@ericsson.com>
Thu, 20 Aug 2020 12:36:20 +0000 (14:36 +0200)
committerBjorn Pettersson <bjorn.a.pettersson@ericsson.com>
Thu, 20 Aug 2020 12:36:59 +0000 (14:36 +0200)
The getSrcFromCopy helper nowadays return a MachineOperand pointer,
so talking about zero_reg was incorrect as it nowadays return
a nullptr when not finding a copy like instruction.

llvm/lib/Target/AArch64/AArch64AdvSIMDScalarPass.cpp

index 981b366..c996d2d 100644 (file)
@@ -123,7 +123,7 @@ static bool isFPR64(unsigned Reg, unsigned SubReg,
 }
 
 // getSrcFromCopy - Get the original source register for a GPR64 <--> FPR64
-// copy instruction. Return zero_reg if the instruction is not a copy.
+// copy instruction. Return nullptr if the instruction is not a copy.
 static MachineOperand *getSrcFromCopy(MachineInstr *MI,
                                       const MachineRegisterInfo *MRI,
                                       unsigned &SubReg) {