Lines Matching full:strstr
697 // fold strstr(x, x) -> x.
701 // fold strstr(a, b) == a -> strncmp(a, b, strlen(b)) == 0
725 // fold strstr(x, "") -> x.
733 if (Offset == StringRef::npos) // strstr("foo", "bar") -> null
736 // strstr("abcd", "bc") -> gep((char*)"abcd", 1)
738 Result = B.CreateConstInBoundsGEP1_64(Result, Offset, "strstr");
742 // fold strstr(x, "y") -> strchr(x, 'y').
2146 case LibFunc::strstr: