Lines Matching refs:Str1P
250 Value *Str1P = CI->getArgOperand(0), *Str2P = CI->getArgOperand(1); in optimizeStrCmp() local
251 if (Str1P == Str2P) // strcmp(x,x) -> 0 in optimizeStrCmp()
255 bool HasStr1 = getConstantStringInfo(Str1P, Str1); in optimizeStrCmp()
267 return B.CreateZExt(B.CreateLoad(Str1P, "strcmpload"), CI->getType()); in optimizeStrCmp()
270 uint64_t Len1 = GetStringLength(Str1P); in optimizeStrCmp()
273 return emitMemCmp(Str1P, Str2P, in optimizeStrCmp()
283 Value *Str1P = CI->getArgOperand(0), *Str2P = CI->getArgOperand(1); in optimizeStrNCmp() local
284 if (Str1P == Str2P) // strncmp(x,x,n) -> 0 in optimizeStrNCmp()
298 return emitMemCmp(Str1P, Str2P, CI->getArgOperand(2), B, DL, TLI); in optimizeStrNCmp()
301 bool HasStr1 = getConstantStringInfo(Str1P, Str1); in optimizeStrNCmp()
316 return B.CreateZExt(B.CreateLoad(Str1P, "strcmpload"), CI->getType()); in optimizeStrNCmp()