Home | History | Annotate | Download | only in Utils

Lines Matching refs:MemCmp

555     // strcmp(P, "x") -> memcmp(P, "x", 2)
596 if (TD && Length == 1) // strncmp(x,y,1) -> memcmp(x,y,1)
945 if (LHS == RHS) // memcmp(s,s,x) -> 0
953 if (Len == 0) // memcmp(s1,s2,0) -> 0
956 // memcmp(S1,S2,1) -> *(unsigned char*)LHS - *(unsigned char*)RHS
965 // Constant folding: memcmp(x, y, l) -> cnst (all arguments are constant)
972 // Fold the memcmp and normalize the result. This way we get consistent
975 int Cmp = memcmp(LHSStr.data(), RHSStr.data(), Len);
1736 static MemCmpOpt MemCmp;
1816 case LibFunc::memcmp:
1817 return &MemCmp;