[all-commits] [llvm/llvm-project] 31e755: [DebugInfo] Correctly update debug users of SSA va...

Stephen Tozer via All-commits all-commits at lists.llvm.org
Mon Jul 26 09:28:18 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 31e75512174e1bdaa242ee5c7f30fe56e68c3748
      https://github.com/llvm/llvm-project/commit/31e75512174e1bdaa242ee5c7f30fe56e68c3748
  Author: Stephen Tozer <Stephen.Tozer at Sony.com>
  Date:   2021-07-26 (Mon, 26 Jul 2021)

  Changed paths:
    M llvm/lib/CodeGen/TailDuplicator.cpp
    A llvm/test/CodeGen/X86/tail-dup-debugvalue.mir

  Log Message:
  -----------
  [DebugInfo] Correctly update debug users of SSA values in tail duplication

During tail duplication, SSA values may be updated and have their uses
replaced with a virtual register, and any debug instructions that use
that value are deleted. This patch fixes the implementation of the debug
instruction deletion to work correctly for debug instructions that use
the SSA value multiple times, by batching deletions so that we don't
attempt to delete the same instruction twice.

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




More information about the All-commits mailing list