Lines Matching defs:PtrB
299 /// Tries to compute the offset in bytes PtrB - PtrA.
300 std::optional<APInt> getConstantOffset(Value *PtrA, Value *PtrB,
303 std::optional<APInt> getConstantOffsetComplexAddrs(Value *PtrA, Value *PtrB,
306 std::optional<APInt> getConstantOffsetSelects(Value *PtrA, Value *PtrB,
1175 Value *PtrA, Value *PtrB, Instruction *ContextInst, unsigned Depth) {
1177 << " PtrB=" << *PtrB << " ContextInst=" << *ContextInst
1180 auto *GEPB = dyn_cast<GetElementPtrInst>(PtrB);
1182 return getConstantOffsetSelects(PtrA, PtrB, ContextInst, Depth);
1288 Value *PtrA, Value *PtrB, Instruction *ContextInst, unsigned Depth) {
1293 if (auto *SelectB = dyn_cast<SelectInst>(PtrB)) {
1297 << ", PtrB=" << *PtrB << ", ContextInst="
1592 std::optional<APInt> Vectorizer::getConstantOffset(Value *PtrA, Value *PtrB,
1596 << ", PtrB=" << *PtrB << ", ContextInst= " << *ContextInst
1604 PtrB = PtrB->stripAndAccumulateInBoundsConstantOffsets(DL, OffsetB);
1606 if (NewPtrBitWidth != DL.getTypeStoreSizeInBits(PtrB->getType()))
1617 if (PtrA == PtrB)
1621 const SCEV *DistScev = SE.getMinusSCEV(SE.getSCEV(PtrB), SE.getSCEV(PtrA));
1623 LLVM_DEBUG(dbgs() << "LSV: SCEV PtrB - PtrA =" << *DistScev << "\n");
1633 getConstantOffsetComplexAddrs(PtrA, PtrB, ContextInst, Depth))