[all-commits] [llvm/llvm-project] 6d23aa: [DebugInfo][RemoveDIs] Implement redundant elimina...

Jeremy Morse via All-commits all-commits at lists.llvm.org
Tue Nov 21 02:29:15 PST 2023


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

  Changed paths:
    M llvm/lib/Transforms/Utils/BasicBlockUtils.cpp
    M llvm/test/Transforms/DCE/dbg-value-removal.ll

  Log Message:
  -----------
  [DebugInfo][RemoveDIs] Implement redundant elimination for DPValues (#72284)

This pass steps through a block forwards and backwards, identifying those
variable assignment records that are redundant, and erases them, saving us
a decent wedge of compile-time. This patch re-implements it to use the
replacement for DbgValueInsts, DPValues, in an almost identical way.

Alas the test I've added the try-remove-dis flag to is the only one I've
been able to find that manually runs this pass.




More information about the All-commits mailing list