[all-commits] [llvm/llvm-project] 1f11d1: [DebugInfo] Fix jump threading failing to update c...

Stephen Tozer via All-commits all-commits at lists.llvm.org
Mon Jan 9 03:43:12 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1f11d1bd1261f8126b1d04faa9231cab87633e66
      https://github.com/llvm/llvm-project/commit/1f11d1bd1261f8126b1d04faa9231cab87633e66
  Author: Ben Mudd <Ben.Mudd at sony.com>
  Date:   2023-01-09 (Mon, 09 Jan 2023)

  Changed paths:
    M llvm/lib/Transforms/Scalar/JumpThreading.cpp
    A llvm/test/Transforms/JumpThreading/thread-debug-info.ll

  Log Message:
  -----------
  [DebugInfo] Fix jump threading failing to update cloned dbg.values

This is a patch to fix duplicated dbg.values in the JumpThreading pass not
pointing towards their local value, and instead towards the variable in the
original block.
JumpThreadingPass::cloneInstructions is the changed function to target metadata
as well as normal cloned values.

Reviewed By: jmorse, StephenTozer

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




More information about the All-commits mailing list