[all-commits] [llvm/llvm-project] 695825: [mlir][TOSA] Do not access erased operation (#148374)

Matthias Springer via All-commits all-commits at lists.llvm.org
Mon Jul 14 01:43:21 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 695825589dc1e91272f1997ad92ab58cd8f7ca70
      https://github.com/llvm/llvm-project/commit/695825589dc1e91272f1997ad92ab58cd8f7ca70
  Author: Matthias Springer <me at m-sp.org>
  Date:   2025-07-14 (Mon, 14 Jul 2025)

  Changed paths:
    M mlir/lib/Conversion/TosaToLinalg/TosaToLinalgNamed.cpp
    M mlir/lib/Conversion/TosaToTensor/TosaToTensor.cpp

  Log Message:
  -----------
  [mlir][TOSA] Do not access erased operation (#148374)

This commit fixes two occurrences where an erased op was accessed at a
later point of time. That won't work anymore in a One-Shot Dialect
Conversion and triggers a use-after-free sanitizer error.

After the One-Shot Dialect Conversion refactoring, a
`ConversionPatternRewriter` will behave more like a normal
`PatternRewriter`.

---------

Co-authored-by: Markus Böck <markus.boeck02 at gmail.com>



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