[all-commits] [llvm/llvm-project] 48e9ef: [mlir] Give each OpResult its own use list

River Riddle via All-commits all-commits at lists.llvm.org
Thu Apr 23 16:32:44 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 48e9ef4320a315ba1f2358db7295d53917a14f4b
      https://github.com/llvm/llvm-project/commit/48e9ef4320a315ba1f2358db7295d53917a14f4b
  Author: River Riddle <riddleriver at gmail.com>
  Date:   2020-04-23 (Thu, 23 Apr 2020)

  Changed paths:
    M mlir/include/mlir/IR/Operation.h
    M mlir/include/mlir/IR/OperationSupport.h
    M mlir/include/mlir/IR/UseDefLists.h
    M mlir/include/mlir/IR/Value.h
    M mlir/lib/IR/Operation.cpp
    M mlir/lib/IR/OperationSupport.cpp
    M mlir/lib/IR/Value.cpp

  Log Message:
  -----------
  [mlir] Give each OpResult its own use list

This revision removes the multi use-list to ensure that each result gets its own. This decision was made by doing some extensive benchmarking of programs that actually use multiple results. This results in a size increase of 1-word per result >1, but the common case of 1-result remains unaffected. A side benefit is that 0-result operations now shrink by 1-word.

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




More information about the All-commits mailing list