[all-commits] [llvm/llvm-project] 623b25: [Local] Do not ignore zexts in salvageDebugInfo, P...

Vedant Kumar via All-commits all-commits at lists.llvm.org
Mon May 18 10:13:07 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 623b2542446a1873fb7ea3904c4fb50e2e77fe41
      https://github.com/llvm/llvm-project/commit/623b2542446a1873fb7ea3904c4fb50e2e77fe41
  Author: Vedant Kumar <vsk at apple.com>
  Date:   2020-05-18 (Mon, 18 May 2020)

  Changed paths:
    M llvm/lib/Transforms/Utils/Local.cpp
    M llvm/test/Transforms/InstCombine/cast-mul-select.ll

  Log Message:
  -----------
  [Local] Do not ignore zexts in salvageDebugInfo, PR45923

Summary:
When salvaging a dead zext instruction, append a convert operation to
the DIExpressions of the debug uses of the instruction, to prevent the
salvaged value from being sign-extended.

I confirmed that lldb prints out the correct unsigned result for "f" in
the example from PR45923 with this changed applied.

rdar://63246143

Reviewers: aprantl, jmorse, chrisjackson, davide

Subscribers: hiraditya, llvm-commits

Tags: #llvm

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




More information about the All-commits mailing list