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