Skip to content
  • Benjamin Kramer's avatar
    TLI: Microoptimize calls to strlen+memcmp to strncmp. · 160f72dc
    Benjamin Kramer authored
    The strlen+memcmp was hidden in a call to StringRef::operator==. We check if
    there are any null bytes in the string upfront so we can simplify the comparison
    Small speedup when compiling code with many function calls.
    
    llvm-svn: 176766
    160f72dc
Loading