[all-commits] [llvm/llvm-project] 425919: [DebugInfo][RemoveDIs] Support finding DPValues li...

Jeremy Morse via All-commits all-commits at lists.llvm.org
Sat Nov 18 15:43:34 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4259198d65c1454b5cb5e60a46b2cce2544f1ca5
      https://github.com/llvm/llvm-project/commit/4259198d65c1454b5cb5e60a46b2cce2544f1ca5
  Author: Jeremy Morse <jeremy.morse at sony.com>
  Date:   2023-11-18 (Sat, 18 Nov 2023)

  Changed paths:
    M llvm/include/llvm/IR/DebugInfo.h
    M llvm/lib/IR/DebugInfo.cpp
    M llvm/lib/IR/Value.cpp
    M llvm/unittests/IR/DebugInfoTest.cpp
    M llvm/unittests/IR/ValueTest.cpp

  Log Message:
  -----------
  [DebugInfo][RemoveDIs] Support finding DPValues like dbg.values (#71952)

This patch extends findDbgValue and friends to optionally fill out a vector
of DPValue pointers, containing DPValues that refer to the sought Value.
This will allow us to incrementally add instrumentation to other
optimisation passes one-at-a-time, while un-instrumented passes will not
(yet) update DPValues.

Unit tests to check this behaves in the same way as dbg.values.




More information about the All-commits mailing list