[all-commits] [llvm/llvm-project] 5b30d9: [MachineOutliner] Do not outline debug instructions

Momchil Velikov via All-commits all-commits at lists.llvm.org
Thu Nov 5 11:27:20 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 5b30d9adc0536eee7fe0f164a550084916899acc
      https://github.com/llvm/llvm-project/commit/5b30d9adc0536eee7fe0f164a550084916899acc
  Author: Momchil Velikov <momchil.velikov at arm.com>
  Date:   2020-11-05 (Thu, 05 Nov 2020)

  Changed paths:
    M llvm/lib/CodeGen/MachineOutliner.cpp
    A llvm/test/CodeGen/ARM/machine-outliner-remove-debug-instr.mir

  Log Message:
  -----------
   [MachineOutliner] Do not outline debug instructions

The debug location is removed from any outlined instruction. This
causes the MachineVerifier to crash on outlined DBG_VALUE
instructions.

Then, debug instructions are "invisible" to the outliner, that is, two
ranges of instructions from different functions are considered
identical if the only difference is debug instructions. Since a debug
instruction from one function is unlikely to provide sensible debug
information about all functions, sharing an outlined sequence, this
patch just removes debug instructions from the outlined functions.

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




More information about the All-commits mailing list