Lines Matching refs:Str2P
373 Value *Str1P = CI->getArgOperand(0), *Str2P = CI->getArgOperand(1); in optimizeStrCmp() local
374 if (Str1P == Str2P) // strcmp(x,x) -> 0 in optimizeStrCmp()
379 bool HasStr2 = getConstantStringInfo(Str2P, Str2); in optimizeStrCmp()
387 B.CreateZExt(B.CreateLoad(Str2P, "strcmpload"), CI->getType())); in optimizeStrCmp()
394 uint64_t Len2 = GetStringLength(Str2P); in optimizeStrCmp()
396 return EmitMemCmp(Str1P, Str2P, in optimizeStrCmp()
415 Value *Str1P = CI->getArgOperand(0), *Str2P = CI->getArgOperand(1); in optimizeStrNCmp() local
416 if (Str1P == Str2P) // strncmp(x,x,n) -> 0 in optimizeStrNCmp()
430 return EmitMemCmp(Str1P, Str2P, CI->getArgOperand(2), B, DL, TLI); in optimizeStrNCmp()
434 bool HasStr2 = getConstantStringInfo(Str2P, Str2); in optimizeStrNCmp()
445 B.CreateZExt(B.CreateLoad(Str2P, "strcmpload"), CI->getType())); in optimizeStrNCmp()