Home
last modified time | relevance | path

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

/external/llvm/lib/Transforms/Utils/
DSimplifyLibCalls.cpp379 bool HasStr2 = getConstantStringInfo(Str2P, Str2); in optimizeStrCmp() local
382 if (HasStr1 && HasStr2) in optimizeStrCmp()
389 if (HasStr2 && Str2.empty()) // strcmp(x,"") -> *x in optimizeStrCmp()
434 bool HasStr2 = getConstantStringInfo(Str2P, Str2); in optimizeStrNCmp() local
437 if (HasStr1 && HasStr2) { in optimizeStrNCmp()
447 if (HasStr2 && Str2.empty()) // strncmp(x, "", n) -> *x in optimizeStrNCmp()
723 bool HasStr2 = getConstantStringInfo(CI->getArgOperand(1), ToFindStr); in optimizeStrStr() local
726 if (HasStr2 && ToFindStr.empty()) in optimizeStrStr()
730 if (HasStr1 && HasStr2) { in optimizeStrStr()
743 if (HasStr2 && ToFindStr.size() == 1) { in optimizeStrStr()