[all-commits] [llvm/llvm-project] 3e76e6: [DebugInfo][RemoveDIs] Set new-dbg-info flag from ...

Jeremy Morse via All-commits all-commits at lists.llvm.org
Tue Feb 20 08:13:40 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3e76e6083da3717fafbb2345eb8a5d1bdac3013e
      https://github.com/llvm/llvm-project/commit/3e76e6083da3717fafbb2345eb8a5d1bdac3013e
  Author: Jeremy Morse <jeremy.morse at sony.com>
  Date:   2024-02-20 (Tue, 20 Feb 2024)

  Changed paths:
    M llvm/lib/IR/Function.cpp
    M llvm/lib/Transforms/IPO/IROutliner.cpp

  Log Message:
  -----------
  [DebugInfo][RemoveDIs] Set new-dbg-info flag from Modules correctly (#82373)

It turns out there's a pathway for Functions to be inserted into modules
without having the "New" debug-info flag set correctly, which this patch
fixes. Sadly there isn't a Module::insert method to instrument out
there, everyone touches the list directly.

This fix exposes a path where such functions are produced in the
outliner in the wrong mode; requiring a fix there to correctly drop
RemoveDIs-mode debug-info. This is covered by
test/DebugInfo/AArch64/ir-outliner.ll



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