[all-commits] [llvm/llvm-project] 3b703d: [Bitcode] Use DenseSet instead of std::set (NFC) (...

Kazu Hirata via All-commits all-commits at lists.llvm.org
Fri Aug 23 14:20:09 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3b703d479ff37883242acc20fed317ed8a5466dc
      https://github.com/llvm/llvm-project/commit/3b703d479ff37883242acc20fed317ed8a5466dc
  Author: Kazu Hirata <kazu at google.com>
  Date:   2024-08-23 (Fri, 23 Aug 2024)

  Changed paths:
    M llvm/lib/Bitcode/Writer/BitcodeWriter.cpp

  Log Message:
  -----------
  [Bitcode] Use DenseSet instead of std::set (NFC) (#105851)

DefOrUseGUIDs is used only for membership checking purposes.  We don't
need std::set's strengths like iterators staying valid or the ability
to traverse in a sorted order.

While I am at it, this patch replaces count with contains for slightly
increased readability.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list