[all-commits] [llvm/llvm-project] 122a6b: [Debugify] Strip added metadata in the -debugify-e...

Vedant Kumar via All-commits all-commits at lists.llvm.org
Mon Apr 13 10:55:38 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 122a6bfb07eb1ec7332ad1ee2e1a2136cc54a9c6
      https://github.com/llvm/llvm-project/commit/122a6bfb07eb1ec7332ad1ee2e1a2136cc54a9c6
  Author: Vedant Kumar <vsk at apple.com>
  Date:   2020-04-13 (Mon, 13 Apr 2020)

  Changed paths:
    M llvm/include/llvm/IR/IntrinsicInst.h
    M llvm/include/llvm/Transforms/Utils/Debugify.h
    M llvm/lib/Analysis/CallGraph.cpp
    M llvm/lib/CodeGen/MachineStripDebug.cpp
    M llvm/lib/Transforms/Utils/Debugify.cpp
    M llvm/test/DebugInfo/debugify-each.ll

  Log Message:
  -----------
  [Debugify] Strip added metadata in the -debugify-each pipeline

Summary:
Share logic to strip debugify metadata between the IR and MIR level
debugify passes. This makes it simpler to hunt for bugs by diffing IR
with vs. without -debugify-each turned on.

As a drive-by, fix an issue causing CallGraphNodes to become invalid
when a dead llvm.dbg.value prototype is deleted.

Reviewers: dsanders, aprantl

Subscribers: hiraditya, llvm-commits

Tags: #llvm

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


  Commit: 4831f4b7bdeb22e405248c45b3ea607a6b28b991
      https://github.com/llvm/llvm-project/commit/4831f4b7bdeb22e405248c45b3ea607a6b28b991
  Author: Vedant Kumar <vsk at apple.com>
  Date:   2020-04-13 (Mon, 13 Apr 2020)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
    A llvm/test/Transforms/InstCombine/malloc-free-delete-dbginvar.ll

  Log Message:
  -----------
  [InstCombine] Fix debug variance issue in tryToMoveFreeBeforeNullTest

Fix an issue where the presence of debug info could disable an
optimization in tryToMoveFreeBeforeNullTest.


Compare: https://github.com/llvm/llvm-project/compare/95e6f5c655fa...4831f4b7bdeb


More information about the All-commits mailing list