Home
last modified time | relevance | path

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

/external/llvm/lib/Transforms/Utils/
DSimplifyLibCalls.cpp372 bool HasStr2 = getConstantStringInfo(Str2P, Str2); in optimizeStrCmp() local
375 if (HasStr1 && HasStr2) in optimizeStrCmp()
382 if (HasStr2 && Str2.empty()) // strcmp(x,"") -> *x in optimizeStrCmp()
427 bool HasStr2 = getConstantStringInfo(Str2P, Str2); in optimizeStrNCmp() local
430 if (HasStr1 && HasStr2) { in optimizeStrNCmp()
440 if (HasStr2 && Str2.empty()) // strncmp(x, "", n) -> *x in optimizeStrNCmp()
721 bool HasStr2 = getConstantStringInfo(CI->getArgOperand(1), ToFindStr); in optimizeStrStr() local
724 if (HasStr2 && ToFindStr.empty()) in optimizeStrStr()
728 if (HasStr1 && HasStr2) { in optimizeStrStr()
741 if (HasStr2 && ToFindStr.size() == 1) { in optimizeStrStr()