Lines Matching refs:OldName
2419 StringRef OldName = OldPtr->getName(); in getNewAllocaSlicePtr() local
2421 size_t LastSROAPrefix = OldName.rfind(".sroa."); in getNewAllocaSlicePtr()
2423 OldName = OldName.substr(LastSROAPrefix + strlen(".sroa.")); in getNewAllocaSlicePtr()
2425 size_t IndexEnd = OldName.find_first_not_of("0123456789"); in getNewAllocaSlicePtr()
2426 if (IndexEnd != StringRef::npos && OldName[IndexEnd] == '.') { in getNewAllocaSlicePtr()
2428 OldName = OldName.substr(IndexEnd + 1); in getNewAllocaSlicePtr()
2429 size_t OffsetEnd = OldName.find_first_not_of("0123456789"); in getNewAllocaSlicePtr()
2430 if (OffsetEnd != StringRef::npos && OldName[OffsetEnd] == '.') in getNewAllocaSlicePtr()
2432 OldName = OldName.substr(OffsetEnd + 1); in getNewAllocaSlicePtr()
2436 OldName = OldName.substr(0, OldName.find(".sroa_")); in getNewAllocaSlicePtr()
2443 Twine(OldName) + "." in getNewAllocaSlicePtr()