[all-commits] [llvm/llvm-project] d148f8: [mlir][llvm] Drop cyclic dependencies during debug...

Tobias Gysi via All-commits all-commits at lists.llvm.org
Fri Jan 20 04:16:08 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d148f8d7dd4aea1270a329c79313feadf9bbb414
      https://github.com/llvm/llvm-project/commit/d148f8d7dd4aea1270a329c79313feadf9bbb414
  Author: Tobias Gysi <tobias.gysi at nextsilicon.com>
  Date:   2023-01-20 (Fri, 20 Jan 2023)

  Changed paths:
    M mlir/lib/Target/LLVMIR/DebugImporter.cpp
    M mlir/lib/Target/LLVMIR/DebugImporter.h
    M mlir/test/Target/LLVMIR/Import/debug-info.ll

  Log Message:
  -----------
  [mlir][llvm] Drop cyclic dependencies during debug metadata import.

This revision fixes the import of LLVM IR to handle debug metadata with
cyclic dependencies. It deletes the elements list of the composite type
if a cyclic dependency is detected. The revision is meant as a band aid
to avoid infinite recursion during the import of cyclic debug metadata.
Long term solutions are currently discussed here:
https://discourse.llvm.org/t/handling-cyclic-dependencies-in-debug-info/67526/4

Reviewed By: Dinistro

Differential Revision: https://reviews.llvm.org/D142086




More information about the All-commits mailing list