[Cleanup] Utility function to erase instruction and mark DBG_Values
authorGerolf Hoflehner <ghoflehner@apple.com>
Wed, 13 Aug 2014 21:15:23 +0000 (21:15 +0000)
committerGerolf Hoflehner <ghoflehner@apple.com>
Wed, 13 Aug 2014 21:15:23 +0000 (21:15 +0000)
commit4e917a29237bd0fffb3fbd58c4dc246121a21b84
tree09fa7e71df56595351e1d3865e9d51d7f8a1b8c8
parent49128636b627847b223fa3bcc29b85e6deb87c09
[Cleanup] Utility function to erase instruction and mark DBG_Values

New function to erase a machine instruction and mark DBG_VALUE
for removal. A DBG_VALUE is marked for removal when it references
an operand defined in the instruction.
Use the new function to cleanup code in dead machine instruction
removal pass.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@215580 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/MachineInstr.h
lib/CodeGen/DeadMachineInstructionElim.cpp
lib/CodeGen/MachineInstr.cpp