[all-commits] [llvm/llvm-project] bda560: [mlir][SliceAnalysis] Fix stack overflow in graph ...

Martin Erhart via All-commits all-commits at lists.llvm.org
Tue Jul 15 06:48:27 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: bda56023c90168ef4eb34442c5e37e3c36d9c825
      https://github.com/llvm/llvm-project/commit/bda56023c90168ef4eb34442c5e37e3c36d9c825
  Author: Martin Erhart <martin.erhart at sifive.com>
  Date:   2025-07-15 (Tue, 15 Jul 2025)

  Changed paths:
    M mlir/include/mlir/Analysis/SliceAnalysis.h
    M mlir/lib/Analysis/SliceAnalysis.cpp
    M mlir/test/Dialect/Affine/slicing-utils.mlir

  Log Message:
  -----------
  [mlir][SliceAnalysis] Fix stack overflow in graph regions (#139694)

This analysis currently just crashes when applied to a graph region that
has a use-def cycle. This PR fixes that by keeping track of the
operations the DFS has already visited when following use-def edges and
stopping once we visit an operation again.



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