[CodeGen] Skip over dbg-instr in twoaddr pass
authorMarkus Lavin <markus.lavin@ericsson.com>
Thu, 3 Jan 2019 08:36:06 +0000 (08:36 +0000)
committerMarkus Lavin <markus.lavin@ericsson.com>
Thu, 3 Jan 2019 08:36:06 +0000 (08:36 +0000)
commit72b9deb21f12469d025e96fdb9af6aa316f96a47
treee54a3161d5cc443bda46ad2c4ff333c18f8e2228
parent74e7d26090be48fb99b2c69e48ec66b5007390f3
[CodeGen] Skip over dbg-instr in twoaddr pass

A DBG_VALUE between a two-address instruction and a following COPY
would prevent rescheduleMIBelowKill optimization inside
TwoAddressInstructionPass.

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

llvm-svn: 350289
llvm/lib/CodeGen/TwoAddressInstructionPass.cpp
llvm/test/CodeGen/X86/twoaddr-dbg-value.mir [new file with mode: 0644]