Lines Matching refs:Tail
46 void foldOffset(MachineInstr &HiLUI, MachineInstr &LoADDI, MachineInstr &Tail,
104 MachineInstr &Tail, int64_t Offset) { in foldOffset() argument
109 DeadInstrs.insert(&Tail); in foldOffset()
110 MRI->replaceRegWith(Tail.getOperand(0).getReg(), in foldOffset()
184 MachineInstr &Tail = *MRI->use_begin(DestReg)->getParent(); in detectAndFoldOffset() local
185 switch (Tail.getOpcode()) { in detectAndFoldOffset()
188 << Tail); in detectAndFoldOffset()
192 int64_t Offset = Tail.getOperand(2).getImm(); in detectAndFoldOffset()
193 LLVM_DEBUG(dbgs() << " Offset Instr: " << Tail); in detectAndFoldOffset()
194 foldOffset(HiLUI, LoADDI, Tail, Offset); in detectAndFoldOffset()
207 if (!matchLargeOffset(Tail, DestReg, Offset)) in detectAndFoldOffset()
209 foldOffset(HiLUI, LoADDI, Tail, Offset); in detectAndFoldOffset()
233 if (Tail.getOperand(1).isFI()) in detectAndFoldOffset()
237 Register BaseAddrReg = Tail.getOperand(1).getReg(); in detectAndFoldOffset()
240 MachineOperand &TailImmOp = Tail.getOperand(2); in detectAndFoldOffset()
245 Tail.RemoveOperand(2); in detectAndFoldOffset()
248 Tail.addOperand(ImmOp); in detectAndFoldOffset()
252 Tail.getOperand(1).setReg(HiLUI.getOperand(0).getReg()); in detectAndFoldOffset()