Searched refs:Str1P (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() 338 bool HasStr1 = GetConstantStringInfo(Str1P, Str1); in CallOptimizer() 351 return B.CreateZExt(B.CreateLoad(Str1P, "strcmpload"), CI->getType()); in CallOptimizer() 354 uint64_t Len1 = GetStringLength(Str1P); 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() 401 bool HasStr1 = GetConstantStringInfo(Str1P, Str1); 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() 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() [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() 301 bool HasStr1 = getConstantStringInfo(Str1P, Str1); in optimizeStrCmp() 313 return B.CreateZExt(B.CreateLoad(Str1P, "strcmpload"), CI->getType()); in optimizeStrCmp() 316 uint64_t Len1 = GetStringLength(Str1P); 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() 347 bool HasStr1 = getConstantStringInfo(Str1P, Str1); in optimizeStrNCmp() [all …]
|