[all-commits] [llvm/llvm-project] 08f076: Remove use of tuple for multiresult type storage

Jacques Pienaar via All-commits all-commits at lists.llvm.org
Mon Mar 1 09:30:53 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 08f0764ff551c5aa2486c40871453e1ff40fb679
      https://github.com/llvm/llvm-project/commit/08f0764ff551c5aa2486c40871453e1ff40fb679
  Author: Jacques Pienaar <jpienaar at google.com>
  Date:   2021-03-01 (Mon, 01 Mar 2021)

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

  Log Message:
  -----------
  Remove use of tuple for multiresult type storage

Move the results in line with the op instead. This results in each
operation having its own types recorded vs single tuple type, but comes
at benefit that every mutation doesn't incurs uniquing. Ran into cases
where updating result type of operation led to very large memory usage.

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




More information about the All-commits mailing list