[all-commits] [llvm/llvm-project] a5cdcf: [mlir] Fix folding for scf.for(tensor.cast).

Alexander Belyaev via All-commits all-commits at lists.llvm.org
Thu Feb 23 02:23:41 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a5cdcf49b2f7895dbdf3d00fe8cd7d3fb4f9d38b
      https://github.com/llvm/llvm-project/commit/a5cdcf49b2f7895dbdf3d00fe8cd7d3fb4f9d38b
  Author: Alexander Belyaev <pifon at google.com>
  Date:   2023-02-23 (Thu, 23 Feb 2023)

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

  Log Message:
  -----------
  [mlir] Fix folding for scf.for(tensor.cast).

We should only fold tensor.casts that provide some new static information about
shapes, instead of looking for a symmetric pattern cast(for(cast)).

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




More information about the All-commits mailing list