Home
last modified time | relevance | path

Searched refs:Str1P (Results 1 – 1 of 1) sorted by relevance

/external/llvm/lib/Transforms/Utils/
DSimplifyLibCalls.cpp366 Value *Str1P = CI->getArgOperand(0), *Str2P = CI->getArgOperand(1); in optimizeStrCmp() local
367 if (Str1P == Str2P) // strcmp(x,x) -> 0 in optimizeStrCmp()
371 bool HasStr1 = getConstantStringInfo(Str1P, Str1); in optimizeStrCmp()
383 return B.CreateZExt(B.CreateLoad(Str1P, "strcmpload"), CI->getType()); in optimizeStrCmp()
386 uint64_t Len1 = GetStringLength(Str1P); in optimizeStrCmp()
389 return EmitMemCmp(Str1P, Str2P, in optimizeStrCmp()
408 Value *Str1P = CI->getArgOperand(0), *Str2P = CI->getArgOperand(1); in optimizeStrNCmp() local
409 if (Str1P == Str2P) // strncmp(x,x,n) -> 0 in optimizeStrNCmp()
423 return EmitMemCmp(Str1P, Str2P, CI->getArgOperand(2), B, DL, TLI); in optimizeStrNCmp()
426 bool HasStr1 = getConstantStringInfo(Str1P, Str1); in optimizeStrNCmp()
[all …]