[all-commits] [llvm/llvm-project] f46744: [mlir][linalg] Fix FoldTensorCastConsumerOp invali...

Ivan Butygin via All-commits all-commits at lists.llvm.org
Fri Jul 22 02:39:44 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f46744bd2a193402a7ea268e4d4a3c9bcbd0f25d
      https://github.com/llvm/llvm-project/commit/f46744bd2a193402a7ea268e4d4a3c9bcbd0f25d
  Author: Ivan Butygin <ivan.butygin at gmail.com>
  Date:   2022-07-22 (Fri, 22 Jul 2022)

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

  Log Message:
  -----------
  [mlir][linalg] Fix FoldTensorCastConsumerOp invalid folding

CastOp can be in conditionally reachable region, in which case this folding will be invalid.
Only conservatively fold ops in same block for now.

Fixes https://github.com/llvm/llvm-project/issues/56557

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




More information about the All-commits mailing list