Lines Matching refs:BasePtr
145 static bool IsPtrInBounds(Value *BasePtr) { in IsPtrInBounds() argument
146 Value *StrippedBasePtr = BasePtr; in IsPtrInBounds()
404 Value *BasePtr = GetPointerOperand(MemI); in runOnLoop() local
405 assert(BasePtr && "No pointer operand"); in runOnLoop()
409 BasePtr->getType()->getPointerAddressSpace()); in runOnLoop()
450 PtrInc->setIsInBounds(IsPtrInBounds(BasePtr)); in runOnLoop()
460 if (PtrInc->getType() != BasePtr->getType()) in runOnLoop()
461 NewBasePtr = new BitCastInst(PtrInc, BasePtr->getType(), in runOnLoop()
466 if (Instruction *IDel = dyn_cast<Instruction>(BasePtr)) in runOnLoop()
468 BasePtr->replaceAllUsesWith(NewBasePtr); in runOnLoop()
469 RecursivelyDeleteTriviallyDeadInstructions(BasePtr); in runOnLoop()