[AArch64] Pass Reg instead of MI to tryToFindRenameRegister (NFC).
authorFlorian Hahn <flo@fhahn.com>
Tue, 1 Mar 2022 14:02:02 +0000 (14:02 +0000)
committerFlorian Hahn <flo@fhahn.com>
Tue, 1 Mar 2022 14:02:02 +0000 (14:02 +0000)
commitd2c8aa0bf49f0af005392a05ca90389b6b8cd26a
tree9c2b45e221ebb5569c29466dfa9c8fd78f998440
parent7c080e4649b030c6fa21ae64ce632c773e7032a6
[AArch64] Pass Reg instead of MI to tryToFindRenameRegister (NFC).

FirstMI is only used to get the load/store operand and the machine
function. Pass the MF and register explicitly, so the helper can be used
to find rename registers for other instructions in the future.
llvm/lib/Target/AArch64/AArch64LoadStoreOptimizer.cpp