Lines Matching refs:OldName
2279 StringRef OldName = OldPtr->getName(); in getNewAllocaSlicePtr() local
2281 size_t LastSROAPrefix = OldName.rfind(".sroa."); in getNewAllocaSlicePtr()
2283 OldName = OldName.substr(LastSROAPrefix + strlen(".sroa.")); in getNewAllocaSlicePtr()
2285 size_t IndexEnd = OldName.find_first_not_of("0123456789"); in getNewAllocaSlicePtr()
2286 if (IndexEnd != StringRef::npos && OldName[IndexEnd] == '.') { in getNewAllocaSlicePtr()
2288 OldName = OldName.substr(IndexEnd + 1); in getNewAllocaSlicePtr()
2289 size_t OffsetEnd = OldName.find_first_not_of("0123456789"); in getNewAllocaSlicePtr()
2290 if (OffsetEnd != StringRef::npos && OldName[OffsetEnd] == '.') in getNewAllocaSlicePtr()
2292 OldName = OldName.substr(OffsetEnd + 1); in getNewAllocaSlicePtr()
2296 OldName = OldName.substr(0, OldName.find(".sroa_")); in getNewAllocaSlicePtr()
2302 Twine(OldName) + "." in getNewAllocaSlicePtr()