[all-commits] [llvm/llvm-project] eb2049: [clang] Use try_emplace instead of insert when get...

serge-sans-paille via All-commits all-commits at lists.llvm.org
Thu Dec 29 12:40:44 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: eb20499dab29e2180dd0ff106edb3233ab243323
      https://github.com/llvm/llvm-project/commit/eb20499dab29e2180dd0ff106edb3233ab243323
  Author: serge-sans-paille <sguelton at mozilla.com>
  Date:   2022-12-29 (Thu, 29 Dec 2022)

  Changed paths:
    M clang/include/clang/Basic/IdentifierTable.h

  Log Message:
  -----------
  [clang] Use try_emplace instead of insert when getting new identifier

This is both less verbose and slightly faster, according to:

https://llvm-compile-time-tracker.com/compare.php?from=d9ab3e82f30d646deff054230b0c742704a1cf26&to=73405077ad913f634797ffc7a7bbb110ac9cae99&stat=instructions:u

No functional change intended :-)




More information about the All-commits mailing list