[all-commits] [llvm/llvm-project] ce6a03: [mlir][arith] Fold `index_cast[ui]` of vectors

Jakub Kuderski via All-commits all-commits at lists.llvm.org
Wed Mar 29 09:52:27 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ce6a03ce0b82dbebcf5c752bade0955dc3abb2ba
      https://github.com/llvm/llvm-project/commit/ce6a03ce0b82dbebcf5c752bade0955dc3abb2ba
  Author: Jakub Kuderski <kubak at google.com>
  Date:   2023-03-29 (Wed, 29 Mar 2023)

  Changed paths:
    M mlir/lib/Dialect/Arith/IR/ArithOps.cpp
    M mlir/test/Dialect/Arith/canonicalize.mlir

  Log Message:
  -----------
  [mlir][arith] Fold `index_cast[ui]` of vectors

Handle the splat and dense case.

I saw this pattern show up in a couple recent SPIR-V-specific bug
report.

Reviewed By: antiagainst

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




More information about the All-commits mailing list