[all-commits] [llvm/llvm-project] c04595: [mlir][tensor] Fold `tensor.reshape` for dynamic r...

Rob Suderman via All-commits all-commits at lists.llvm.org
Fri Apr 19 10:36:31 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c045955501ed28fee7c40d8822a1aacc2022786e
      https://github.com/llvm/llvm-project/commit/c045955501ed28fee7c40d8822a1aacc2022786e
  Author: Rob Suderman <rob.suderman at gmail.com>
  Date:   2024-04-19 (Fri, 19 Apr 2024)

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

  Log Message:
  -----------
  [mlir][tensor] Fold `tensor.reshape` for dynamic reshape (#88961)

If `tensor.reshape` occurs with `d0, d1, d2, ...` for the dimensions we
know that the reshape is a no-op. Checking for this case lets us fold
away the computation.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list