From ff107eed1546bcdb1b1ce2ffafbb7b10ea2b2a30 Mon Sep 17 00:00:00 2001 From: Bjorn Pettersson Date: Thu, 20 Aug 2020 14:36:20 +0200 Subject: [PATCH] [AArch64] Update a code comment incorrectly referring to zero_reg. NFC 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Target/AArch64/AArch64AdvSIMDScalarPass.cpp b/llvm/lib/Target/AArch64/AArch64AdvSIMDScalarPass.cpp index 981b366c14b1..c996d2df8c38 100644 --- a/llvm/lib/Target/AArch64/AArch64AdvSIMDScalarPass.cpp +++ b/llvm/lib/Target/AArch64/AArch64AdvSIMDScalarPass.cpp @@ -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) {