[all-commits] [llvm/llvm-project] 2f15d7: [mlir][tensor] Fix off-by-one error in ReshapeOpsU...

Vinayak Dev via All-commits all-commits at lists.llvm.org
Fri Oct 18 01:32:52 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2f15d7e43e17f72839861bfe3a5c466c325bc04d
      https://github.com/llvm/llvm-project/commit/2f15d7e43e17f72839861bfe3a5c466c325bc04d
  Author: Vinayak Dev <104419489+vinayakdsci at users.noreply.github.com>
  Date:   2024-10-18 (Fri, 18 Oct 2024)

  Changed paths:
    M mlir/lib/Dialect/Utils/ReshapeOpsUtils.cpp
    M mlir/test/Dialect/Tensor/canonicalize.mlir

  Log Message:
  -----------
  [mlir][tensor] Fix off-by-one error in ReshapeOpsUtils (#112774)

This patch fixes an off-by-one error in
`mlir::getReassociationIndicesForCollapse()` that occurs when the last
two dims of the source tensor satisfy the while loop.

This would cause an assertion failure due to out-of-bounds-access, which
is now fixed.



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