Lines Matching refs:BBI
127 for (auto BBI = MBB.instr_begin(); BBI != MBB.instr_end(); ++BBI) { in removeRedundantLIs() local
130 if (InstrsToErase.contains(&*BBI)) in removeRedundantLIs()
133 unsigned Opc = BBI->getOpcode(); in removeRedundantLIs()
139 if (!BBI->getOperand(1).isImm()) in removeRedundantLIs()
141 assert(BBI->getOperand(0).isReg() && in removeRedundantLIs()
144 LLVM_DEBUG(dbgs() << "Scanning after load immediate: "; BBI->dump();); in removeRedundantLIs()
146 Register Reg = BBI->getOperand(0).getReg(); in removeRedundantLIs()
147 int64_t Imm = BBI->getOperand(1).getImm(); in removeRedundantLIs()
149 if (BBI->getOperand(0).isDead()) { in removeRedundantLIs()
150 DeadOrKillToUnset = &BBI->getOperand(0); in removeRedundantLIs()
152 << " from load immediate " << *BBI in removeRedundantLIs()
157 for (auto AfterBBI = std::next(BBI); AfterBBI != MBB.instr_end(); in removeRedundantLIs()
270 for (auto BBI = MBB.instr_begin(); BBI != MBB.instr_end(); ++BBI) { in addLinkerOpt() local
272 if (isGOTPLDpc(*BBI)) { in addLinkerOpt()
273 GOTDefUsePair CurrentPair{BBI, MachineBasicBlock::iterator(), in addLinkerOpt()
274 BBI->getOperand(0).getReg(), in addLinkerOpt()
291 if (!BBI->readsRegister(Pair.DefReg, TRI) && in addLinkerOpt()
292 !BBI->modifiesRegister(Pair.DefReg, TRI)) in addLinkerOpt()
298 hasPCRelativeForm(*BBI) ? &BBI->getOperand(2) : nullptr; in addLinkerOpt()
303 Pair.UseInst = BBI; in addLinkerOpt()
304 Pair.UseReg = BBI->getOperand(0).getReg(); in addLinkerOpt()
319 MachineBasicBlock::iterator BBI = Pair->DefInst; in addLinkerOpt() local
320 ++BBI; in addLinkerOpt()
321 for (; BBI != Pair->UseInst; ++BBI) { in addLinkerOpt()
322 if (BBI->readsRegister(Pair->UseReg, TRI) || in addLinkerOpt()
323 BBI->modifiesRegister(Pair->UseReg, TRI)) { in addLinkerOpt()
375 for (MachineInstr &BBI : MBB.instrs()) { in removeAccPrimeUnprime()
376 unsigned Opc = BBI.getOpcode(); in removeAccPrimeUnprime()
380 Register Acc = BBI.getOperand(0).getReg(); in removeAccPrimeUnprime()
383 Candidates[Acc - PPC::ACC0] = &BBI; in removeAccPrimeUnprime()
388 Register Acc = BBI.getOperand(0).getReg(); in removeAccPrimeUnprime()
393 InstrsToErase.insert(&BBI); in removeAccPrimeUnprime()
399 for (MachineOperand &Operand : BBI.operands()) { in removeAccPrimeUnprime()