@@ -5618,7 +5618,6 @@ void AArch64InstrInfo::storeRegToStackSlot(MachineBasicBlock &MBB,
56185618 MachineBasicBlock::iterator MBBI,
56195619 Register SrcReg, bool isKill, int FI,
56205620 const TargetRegisterClass *RC,
5621- const TargetRegisterInfo *TRI,
56225621 Register VReg,
56235622 MachineInstr::MIFlag Flags) const {
56245623 MachineFunction &MF = *MBB.getParent ();
@@ -5632,7 +5631,7 @@ void AArch64InstrInfo::storeRegToStackSlot(MachineBasicBlock &MBB,
56325631 bool Offset = true ;
56335632 MCRegister PNRReg = MCRegister::NoRegister;
56345633 unsigned StackID = TargetStackID::Default;
5635- switch (TRI-> getSpillSize (*RC)) {
5634+ switch (RI. getSpillSize (*RC)) {
56365635 case 1 :
56375636 if (AArch64::FPR8RegClass.hasSubClassEq (RC))
56385637 Opc = AArch64::STRBui;
@@ -5795,10 +5794,12 @@ static void loadRegPairFromStackSlot(const TargetRegisterInfo &TRI,
57955794 .addMemOperand (MMO);
57965795}
57975796
5798- void AArch64InstrInfo::loadRegFromStackSlot (
5799- MachineBasicBlock &MBB, MachineBasicBlock::iterator MBBI, Register DestReg,
5800- int FI, const TargetRegisterClass *RC, const TargetRegisterInfo *TRI,
5801- Register VReg, MachineInstr::MIFlag Flags) const {
5797+ void AArch64InstrInfo::loadRegFromStackSlot (MachineBasicBlock &MBB,
5798+ MachineBasicBlock::iterator MBBI,
5799+ Register DestReg, int FI,
5800+ const TargetRegisterClass *RC,
5801+ Register VReg,
5802+ MachineInstr::MIFlag Flags) const {
58025803 MachineFunction &MF = *MBB.getParent ();
58035804 MachineFrameInfo &MFI = MF.getFrameInfo ();
58045805 MachinePointerInfo PtrInfo = MachinePointerInfo::getFixedStack (MF, FI);
@@ -5810,7 +5811,7 @@ void AArch64InstrInfo::loadRegFromStackSlot(
58105811 bool Offset = true ;
58115812 unsigned StackID = TargetStackID::Default;
58125813 Register PNRReg = MCRegister::NoRegister;
5813- switch (TRI-> getSpillSize (*RC)) {
5814+ switch (TRI. getSpillSize (*RC)) {
58145815 case 1 :
58155816 if (AArch64::FPR8RegClass.hasSubClassEq (RC))
58165817 Opc = AArch64::LDRBui;
@@ -6446,10 +6447,10 @@ MachineInstr *AArch64InstrInfo::foldMemoryOperandImpl(
64466447 " Mismatched register size in non subreg COPY" );
64476448 if (IsSpill)
64486449 storeRegToStackSlot (MBB, InsertPt, SrcReg, SrcMO.isKill (), FrameIndex,
6449- getRegClass (SrcReg), &TRI, Register ());
6450+ getRegClass (SrcReg), Register ());
64506451 else
64516452 loadRegFromStackSlot (MBB, InsertPt, DstReg, FrameIndex,
6452- getRegClass (DstReg), &TRI, Register ());
6453+ getRegClass (DstReg), Register ());
64536454 return &*--InsertPt;
64546455 }
64556456
@@ -6467,8 +6468,7 @@ MachineInstr *AArch64InstrInfo::foldMemoryOperandImpl(
64676468 assert (SrcMO.getSubReg () == 0 &&
64686469 " Unexpected subreg on physical register" );
64696470 storeRegToStackSlot (MBB, InsertPt, AArch64::XZR, SrcMO.isKill (),
6470- FrameIndex, &AArch64::GPR64RegClass, &TRI,
6471- Register ());
6471+ FrameIndex, &AArch64::GPR64RegClass, Register ());
64726472 return &*--InsertPt;
64736473 }
64746474
@@ -6502,7 +6502,7 @@ MachineInstr *AArch64InstrInfo::foldMemoryOperandImpl(
65026502 assert (TRI.getRegSizeInBits (*getRegClass (SrcReg)) ==
65036503 TRI.getRegSizeInBits (*FillRC) &&
65046504 " Mismatched regclass size on folded subreg COPY" );
6505- loadRegFromStackSlot (MBB, InsertPt, DstReg, FrameIndex, FillRC, &TRI,
6505+ loadRegFromStackSlot (MBB, InsertPt, DstReg, FrameIndex, FillRC,
65066506 Register ());
65076507 MachineInstr &LoadMI = *--InsertPt;
65086508 MachineOperand &LoadDst = LoadMI.getOperand (0 );
0 commit comments