[all-commits] [llvm/llvm-project] 1fc6ef: [mlir][StorageUniquer] Replace all usages of std::...

River Riddle via All-commits all-commits at lists.llvm.org
Sat Apr 11 23:11:29 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 1fc6efaf6aafddaccfa89eb544db61d977a5ac86
      https://github.com/llvm/llvm-project/commit/1fc6efaf6aafddaccfa89eb544db61d977a5ac86
  Author: River Riddle <riddleriver at gmail.com>
  Date:   2020-04-11 (Sat, 11 Apr 2020)

  Changed paths:
    M mlir/include/mlir/IR/AttributeSupport.h
    M mlir/include/mlir/Support/StorageUniquer.h
    M mlir/lib/IR/MLIRContext.cpp
    M mlir/lib/Support/StorageUniquer.cpp

  Log Message:
  -----------
  [mlir][StorageUniquer] Replace all usages of std::function with function_ref.

Summary: std::function has a notoriously large amount of malloc traffic, whereas function_ref is a cheaper and more efficient alternative.

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




More information about the All-commits mailing list