[llvm] ff107ee - [AArch64] Update a code comment incorrectly referring to zero_reg. NFC

Bjorn Pettersson via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 20 05:37:49 PDT 2020


Author: Bjorn Pettersson
Date: 2020-08-20T14:36:59+02:00
New Revision: ff107eed1546bcdb1b1ce2ffafbb7b10ea2b2a30

URL: https://github.com/llvm/llvm-project/commit/ff107eed1546bcdb1b1ce2ffafbb7b10ea2b2a30
DIFF: https://github.com/llvm/llvm-project/commit/ff107eed1546bcdb1b1ce2ffafbb7b10ea2b2a30.diff

LOG: [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.

Added: 
    

Modified: 
    llvm/lib/Target/AArch64/AArch64AdvSIMDScalarPass.cpp

Removed: 
    


################################################################################
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) {


        


More information about the llvm-commits mailing list