[all-commits] [llvm/llvm-project] a79b2f: Add pass to strip debug info from MIR

Daniel Sanders via All-commits all-commits at lists.llvm.org
Thu Apr 9 15:45:04 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: a79b2fc44bfd5b5c856ce7b62f40c991afd9a532
      https://github.com/llvm/llvm-project/commit/a79b2fc44bfd5b5c856ce7b62f40c991afd9a532
  Author: Daniel Sanders <daniel_l_sanders at apple.com>
  Date:   2020-04-09 (Thu, 09 Apr 2020)

  Changed paths:
    M llvm/include/llvm/CodeGen/Passes.h
    M llvm/include/llvm/InitializePasses.h
    M llvm/lib/CodeGen/CMakeLists.txt
    M llvm/lib/CodeGen/CodeGen.cpp
    A llvm/lib/CodeGen/MachineStripDebug.cpp
    M llvm/test/CodeGen/Generic/MIRDebugify/locations.mir
    A llvm/test/CodeGen/Generic/MIRStripDebug/all.mir
    A llvm/test/CodeGen/Generic/MIRStripDebug/multiple-moduleflags.mir

  Log Message:
  -----------
  Add pass to strip debug info from MIR

Summary:
Removes:
* All LLVM-IR level debug info using StripDebugInfo()
* All debugify metadata
* 'Debug Info Version' module flag
* All (valid*) DEBUG_VALUE MachineInstrs
* All DebugLocs from MachineInstrs

This is a more complete solution than the previous MIRPrinter
option that just causes it to neglect to print debug-locations.

* The qualifier 'valid' is used here because AArch64 emits
  an invalid one and tests depend on it

Reviewers: vsk, aprantl, bogner

Subscribers: mgorny, hiraditya, llvm-commits

Tags: #llvm

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




More information about the All-commits mailing list