[all-commits] [llvm/llvm-project] e3bae3: [mlir][affine] Fix crash when rolling back vectori...

Mattéo Rizza Murgier via All-commits all-commits at lists.llvm.org
Wed Sep 30 00:34:14 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e3bae380eb23076b081ad7db1e8f6a36c5261eb3
      https://github.com/llvm/llvm-project/commit/e3bae380eb23076b081ad7db1e8f6a36c5261eb3
  Author: Mattéo Rizza Murgier <matteo.rizza-murgier at sipearl.com>
  Date:   2026-09-30 (Wed, 30 Sep 2026)

  Changed paths:
    M mlir/lib/Dialect/Affine/Transforms/SuperVectorize.cpp
    M mlir/test/Dialect/Affine/SuperVectorize/vectorize_reduction.mlir

  Log Message:
  -----------
  [mlir][affine] Fix crash when rolling back vectorization of reduction loops (#226912)

Reductions introduce operations outside of the created loop, that are
users of said loop. When rolling back (e.g. when an op inside the loop
being vectorized is not vectorizable), only the created loop is deleted,
which leads to the error: “operation destroyed but still has uses”.

This PR fixes this by recursively deleting users of the newly created
loop before removing it when rolling back.



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