[all-commits] [llvm/llvm-project] 529ee3: [mlir][tensor] Fix slice canonicalizer for out-of-...

Matthias Springer via All-commits all-commits at lists.llvm.org
Mon Mar 24 06:39:58 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 529ee3cf3bb97b7ff468b5046372d070a8667147
      https://github.com/llvm/llvm-project/commit/529ee3cf3bb97b7ff468b5046372d070a8667147
  Author: Matthias Springer <me at m-sp.org>
  Date:   2025-03-24 (Mon, 24 Mar 2025)

  Changed paths:
    M mlir/include/mlir/Interfaces/ViewLikeInterface.h
    M mlir/lib/Dialect/Tensor/IR/TensorOps.cpp
    M mlir/lib/Interfaces/ViewLikeInterface.cpp
    M mlir/test/Dialect/Tensor/canonicalize.mlir

  Log Message:
  -----------
  [mlir][tensor] Fix slice canonicalizer for out-of-bounds cases (#132534)

Since #130487, `tensor.extract_slice` and `tensor.insert_slice` ops that
are statically detected to go out of bounds are rejected by the
verifier.

This commit fixes canonicalization patterns that currently fold
dynamically out-of-bounds ops (valid IR) to statically out-of-bounds ops
(invalid IR).



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