[all-commits] [llvm/llvm-project] 9f37c2: [mlir][vector] Fold shape_cast of broadcast with s...

Lei Zhang via All-commits all-commits at lists.llvm.org
Tue Aug 15 11:26:43 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9f37c21349580d88858a463df88235923a9bf7e0
      https://github.com/llvm/llvm-project/commit/9f37c21349580d88858a463df88235923a9bf7e0
  Author: Lei Zhang <antiagainst at google.com>
  Date:   2023-08-15 (Tue, 15 Aug 2023)

  Changed paths:
    M mlir/lib/Dialect/Vector/IR/VectorOps.cpp
    M mlir/test/Dialect/Vector/canonicalize.mlir

  Log Message:
  -----------
  [mlir][vector] Fold shape_cast of broadcast with same element count

For such cases we can generate a shape cast to simplify the IR.

Reviewed By: hanchung

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




More information about the All-commits mailing list