Lines Matching refs:BasePtr
123 static bool IsPtrInBounds(Value *BasePtr) { in IsPtrInBounds() argument
124 Value *StrippedBasePtr = BasePtr; in IsPtrInBounds()
314 Value *BasePtr = GetPointerOperand(MemI); in runOnLoop() local
315 assert(BasePtr && "No pointer operand"); in runOnLoop()
319 BasePtr->getType()->getPointerAddressSpace()); in runOnLoop()
357 PtrInc->setIsInBounds(IsPtrInBounds(BasePtr)); in runOnLoop()
367 if (PtrInc->getType() != BasePtr->getType()) in runOnLoop()
368 NewBasePtr = new BitCastInst(PtrInc, BasePtr->getType(), in runOnLoop()
373 if (Instruction *IDel = dyn_cast<Instruction>(BasePtr)) in runOnLoop()
375 BasePtr->replaceAllUsesWith(NewBasePtr); in runOnLoop()
376 RecursivelyDeleteTriviallyDeadInstructions(BasePtr); in runOnLoop()