[all-commits] [llvm/llvm-project] 2125eb: [mlir][core] Slightly improved attribute lookup

Jeff Niu via All-commits all-commits at lists.llvm.org
Thu Nov 4 14:49:10 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2125eb3446d30c49f0997b5cd24535ded36528e0
      https://github.com/llvm/llvm-project/commit/2125eb3446d30c49f0997b5cd24535ded36528e0
  Author: Mogball <jeffniu22 at gmail.com>
  Date:   2021-11-04 (Thu, 04 Nov 2021)

  Changed paths:
    M mlir/include/mlir/IR/BuiltinAttributes.td
    M mlir/include/mlir/IR/Operation.h
    M mlir/include/mlir/IR/OperationSupport.h
    M mlir/lib/IR/BuiltinAttributes.cpp
    M mlir/lib/IR/OperationSupport.cpp

  Log Message:
  -----------
  [mlir][core] Slightly improved attribute lookup

- String binary search does 1 less string comparison
- Identifier linear scan on large attribute list is switched to string binary search

Reviewed By: rriddle

Differential Revision: https://reviews.llvm.org/D112970




More information about the All-commits mailing list