Home | History | Annotate | Download | only in Scalar

Lines Matching full:bbi

68 deleteDeadInstruction(Instruction *I, BasicBlock::iterator *BBI,
78 BasicBlock::iterator NewIter = *BBI;
110 *BBI = NewIter;
616 BasicBlock::iterator BBI(Dependency);
617 deleteDeadInstruction(Dependency, &BBI, *MD, *TLI);
626 Dep = MD->getPointerDependencyFrom(Loc, false, BBI, BB);
700 for (BasicBlock::iterator BBI = BB.end(); BBI != BB.begin(); ){
701 --BBI;
704 if (hasMemoryWrite(&*BBI, *TLI) && isRemovable(&*BBI)) {
707 GetUnderlyingObjects(getStoredPointerOperand(&*BBI), Pointers, DL);
718 Instruction *Dead = &*BBI;
731 deleteDeadInstruction(Dead, &BBI, *MD, *TLI, &DeadStackObjects);
739 if (isInstructionTriviallyDead(&*BBI, TLI)) {
740 deleteDeadInstruction(&*BBI, &BBI, *MD, *TLI, &DeadStackObjects);
746 if (isa<AllocaInst>(BBI)) {
749 DeadStackObjects.remove(&*BBI);
753 if (auto CS = CallSite(&*BBI)) {
756 if (isAllocLikeFn(&*BBI, TLI))
757 DeadStackObjects.remove(&*BBI);
786 if (isa<FenceInst>(*BBI))
792 if (LoadInst *L = dyn_cast<LoadInst>(BBI)) {
796 } else if (VAArgInst *V = dyn_cast<VAArgInst>(BBI)) {
798 } else if (MemTransferInst *MTI = dyn_cast<MemTransferInst>(BBI)) {
800 } else if (!BBI->mayReadFromMemory()) {
822 static bool eliminateNoopStore(Instruction *Inst, BasicBlock::iterator &BBI,
840 deleteDeadInstruction(SI, &BBI, *MD, *TLI);
858 deleteDeadInstruction(SI, &BBI, *MD, *TLI);
876 for (BasicBlock::iterator BBI = BB.begin(), BBE = BB.end(); BBI != BBE; ) {
878 if (CallInst *F = isFreeCall(&*BBI, TLI)) {
880 // Increment BBI after handleFree has potentially deleted instructions.
882 ++BBI;
886 Instruction *Inst = &*BBI++;
893 if (eliminateNoopStore(Inst, BBI, AA, MD, DL, TLI)) {
941 deleteDeadInstruction(DepWrite, &BBI, *MD, *TLI);