[all-commits] [llvm/llvm-project] 7b52ae: [mlir][Tensor] Add folding for tensor.from_elements

Benjamin Kramer via All-commits all-commits at lists.llvm.org
Mon May 10 15:43:13 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7b52aeadfa38c8a1fc0e97066f50900f1efafd42
      https://github.com/llvm/llvm-project/commit/7b52aeadfa38c8a1fc0e97066f50900f1efafd42
  Author: Benjamin Kramer <benny.kra at googlemail.com>
  Date:   2021-05-11 (Tue, 11 May 2021)

  Changed paths:
    M mlir/include/mlir/Dialect/Tensor/IR/TensorOps.td
    M mlir/lib/Dialect/Tensor/IR/TensorOps.cpp
    M mlir/test/Dialect/Linalg/detensorize_trivial.mlir
    M mlir/test/Dialect/Tensor/canonicalize.mlir

  Log Message:
  -----------
  [mlir][Tensor] Add folding for tensor.from_elements

This trivially folds into a constant when all operands are constant.

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




More information about the All-commits mailing list