[all-commits] [llvm/llvm-project] d81a3c: [mlir] Fold tensor.reshape operations into tensor....

Rob Suderman via All-commits all-commits at lists.llvm.org
Tue Jan 25 15:57:32 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d81a3c51e7f76c4b3f7ed687f82a019168aad2da
      https://github.com/llvm/llvm-project/commit/d81a3c51e7f76c4b3f7ed687f82a019168aad2da
  Author: Rob Suderman <rob.suderman at gmail.com>
  Date:   2022-01-25 (Tue, 25 Jan 2022)

  Changed paths:
    M mlir/lib/Dialect/Tensor/IR/TensorOps.cpp
    M mlir/test/Dialect/Tensor/canonicalize.mlir

  Log Message:
  -----------
  [mlir] Fold tensor.reshape operations into tensor.from_elements.

There is not much of a benefit to reshape a from element vs reloading it.
Updated to progagate shape manipulations into the output type of
tensor.from_elements.

Reviewed By: NatashaKnk

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




More information about the All-commits mailing list