[all-commits] [llvm/llvm-project] aadd76: [DebugInfo][RemoveDIs] Prevent duplicate DPValues ...

Stephen Tozer via All-commits all-commits at lists.llvm.org
Thu Feb 29 06:37:19 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: aadd7650447b301f8d08fe94a886df05971adecb
      https://github.com/llvm/llvm-project/commit/aadd7650447b301f8d08fe94a886df05971adecb
  Author: Stephen Tozer <stephen.tozer at sony.com>
  Date:   2024-02-29 (Thu, 29 Feb 2024)

  Changed paths:
    M llvm/lib/IR/DebugInfo.cpp
    M llvm/test/Transforms/Coroutines/coro-debug-dbg.values.ll

  Log Message:
  -----------
  [DebugInfo][RemoveDIs] Prevent duplicate DPValues from being returned by findDbgIntrinsics (#82764)

Fixes the error described here:
https://github.com/llvm/llvm-project/commit/a93a4ec7dd205b965ee5597314bb376520cd736c#commitcomment-138965199

The function `findDbgIntrinsics` is used to return a list of debug
intrinsics and DPValues that use a given value, with the intent that no
duplicates are returned in either list. For DPValues, we've guarded
against DPValues that use a value multiple times as part of a DIArgList,
but we have not guarded against DPValues that use a value multiple times
as separate operands (currently only possible for `dbg_assign`s,
something I missed in my implementation of that type!). This patch adds
a guard, and also updates a test to cover this case.



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