[all-commits] [llvm/llvm-project] 9c5242: [IR] Avoid linear scan in MDNode::intersect() (NFC)

Nikita Popov via All-commits all-commits at lists.llvm.org
Thu May 28 10:39:27 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 9c52422cd83137a55e9d198bf123982c040b2e99
      https://github.com/llvm/llvm-project/commit/9c52422cd83137a55e9d198bf123982c040b2e99
  Author: Nikita Popov <nikita.ppv at gmail.com>
  Date:   2020-05-28 (Thu, 28 May 2020)

  Changed paths:
    M llvm/lib/IR/Metadata.cpp

  Log Message:
  -----------
  [IR] Avoid linear scan in MDNode::intersect() (NFC)

00940fb8544767ba5217922c4ba96677aabe9eb3 changed this code to
construct a set for the B metadata. However, it still performs a
linear is_contained query, rather than making use of the set
structure.




More information about the All-commits mailing list