From 45c969defa9047df7b98fb5f972a0c9081d5d877 Mon Sep 17 00:00:00 2001 From: Florian Hahn Date: Tue, 1 Mar 2022 12:44:03 +0000 Subject: [PATCH] [AArch64] Remove unused argument from tryToFindRegisterToRename (NFC). The MI argument is not used by the function. Remove it. --- llvm/lib/Target/AArch64/AArch64LoadStoreOptimizer.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/llvm/lib/Target/AArch64/AArch64LoadStoreOptimizer.cpp b/llvm/lib/Target/AArch64/AArch64LoadStoreOptimizer.cpp index 201783d..7bcc114 100644 --- a/llvm/lib/Target/AArch64/AArch64LoadStoreOptimizer.cpp +++ b/llvm/lib/Target/AArch64/AArch64LoadStoreOptimizer.cpp @@ -1474,7 +1474,7 @@ canRenameUpToDef(MachineInstr &FirstMI, LiveRegUnits &UsedInBetween, // rename (checked using UsedInBetween). // * is available in all used register classes (checked using RequiredClasses). static Optional tryToFindRegisterToRename( - MachineInstr &FirstMI, MachineInstr &MI, LiveRegUnits &DefinedInBB, + MachineInstr &FirstMI, LiveRegUnits &DefinedInBB, LiveRegUnits &UsedInBetween, SmallPtrSetImpl &RequiredClasses, const TargetRegisterInfo *TRI) { @@ -1723,8 +1723,7 @@ AArch64LoadStoreOpt::findMatchingInsn(MachineBasicBlock::iterator I, if (*MaybeCanRename) { Optional MaybeRenameReg = tryToFindRegisterToRename( - FirstMI, MI, DefinedInBB, UsedInBetween, RequiredClasses, - TRI); + FirstMI, DefinedInBB, UsedInBetween, RequiredClasses, TRI); if (MaybeRenameReg) { Flags.setRenameReg(*MaybeRenameReg); Flags.setMergeForward(true); -- 2.7.4