Searched refs:Str2P (Results 1 – 3 of 3) sorted by relevance
/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/ |
D | SimplifyLibCalls.cpp | 333 Value *Str1P = CI->getArgOperand(0), *Str2P = CI->getArgOperand(1); in CallOptimizer() local 334 if (Str1P == Str2P) // strcmp(x,x) -> 0 in CallOptimizer() 339 bool HasStr2 = GetConstantStringInfo(Str2P, Str2); in CallOptimizer() 347 return B.CreateNeg(B.CreateZExt(B.CreateLoad(Str2P, "strcmpload"), in CallOptimizer() 355 uint64_t Len2 = GetStringLength(Str2P); in CallOptimizer() 360 return EmitMemCmp(Str1P, Str2P, in CallOptimizer() 383 Value *Str1P = CI->getArgOperand(0), *Str2P = CI->getArgOperand(1); in CallOptimizer() local 384 if (Str1P == Str2P) // strncmp(x,x,n) -> 0 in CallOptimizer() 398 return EmitMemCmp(Str1P, Str2P, CI->getArgOperand(2), B, TD); in CallOptimizer() 402 bool HasStr2 = GetConstantStringInfo(Str2P, Str2); in CallOptimizer() [all …]
|
/external/llvm/lib/Transforms/Utils/ |
D | SimplifyLibCalls.cpp | 250 Value *Str1P = CI->getArgOperand(0), *Str2P = CI->getArgOperand(1); in optimizeStrCmp() local 251 if (Str1P == Str2P) // strcmp(x,x) -> 0 in optimizeStrCmp() 256 bool HasStr2 = getConstantStringInfo(Str2P, Str2); in optimizeStrCmp() 264 B.CreateZExt(B.CreateLoad(Str2P, "strcmpload"), CI->getType())); in optimizeStrCmp() 271 uint64_t Len2 = GetStringLength(Str2P); 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() 302 bool HasStr2 = getConstantStringInfo(Str2P, Str2); in optimizeStrNCmp() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Utils/ |
D | SimplifyLibCalls.cpp | 296 Value *Str1P = CI->getArgOperand(0), *Str2P = CI->getArgOperand(1); in optimizeStrCmp() local 297 if (Str1P == Str2P) // strcmp(x,x) -> 0 in optimizeStrCmp() 302 bool HasStr2 = getConstantStringInfo(Str2P, Str2); in optimizeStrCmp() 310 B.CreateZExt(B.CreateLoad(Str2P, "strcmpload"), CI->getType())); in optimizeStrCmp() 317 uint64_t Len2 = GetStringLength(Str2P); in optimizeStrCmp() 319 return emitMemCmp(Str1P, Str2P, in optimizeStrCmp() 329 Value *Str1P = CI->getArgOperand(0), *Str2P = CI->getArgOperand(1); in optimizeStrNCmp() local 330 if (Str1P == Str2P) // strncmp(x,x,n) -> 0 in optimizeStrNCmp() 344 return emitMemCmp(Str1P, Str2P, CI->getArgOperand(2), B, DL, TLI); in optimizeStrNCmp() 348 bool HasStr2 = getConstantStringInfo(Str2P, Str2); in optimizeStrNCmp() [all …]
|