[all-commits] [llvm/llvm-project] ed766f: Sort EnumAttr so it matches Attribute::operator<

Benjamin Kramer via All-commits all-commits at lists.llvm.org
Sun Apr 26 08:01:45 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: ed766f1bb1040a520fb5646ab75851e2b0fd66df
      https://github.com/llvm/llvm-project/commit/ed766f1bb1040a520fb5646ab75851e2b0fd66df
  Author: Benjamin Kramer <benny.kra at googlemail.com>
  Date:   2020-04-26 (Sun, 26 Apr 2020)

  Changed paths:
    M llvm/include/llvm/IR/Attributes.td
    M llvm/lib/IR/AttributeImpl.h
    M llvm/lib/IR/Attributes.cpp
    M llvm/utils/TableGen/Attributes.cpp

  Log Message:
  -----------
  Sort EnumAttr so it matches Attribute::operator<

This means AttrBuilder will always create a sorted set of attributes and
we can skip the sorting step. Sorting attributes is surprisingly
expensive, and I recently made it worse by making it use array_pod_sort.




More information about the All-commits mailing list