OSDN Git Service

Mark rematerialized super/sub registers as dead.
authorTim Northover <tnorthover@apple.com>
Fri, 14 Jun 2013 20:22:21 +0000 (20:22 +0000)
committerTim Northover <tnorthover@apple.com>
Fri, 14 Jun 2013 20:22:21 +0000 (20:22 +0000)
commit89dbe9744255864445b1c9f9a613ae333d3f79c8
tree65aa89308e7636e6eba9973e4f35e49711796566
parentd5d7410982788be5b2e31c7e150a219f80d0a0d9
Mark rematerialized super/sub registers as dead.

When we're rematerializing into a not-quite-right register we already add the
real definition as an imp-def, but we should also be marking the "official"
register as dead, since nothing else is going to use it as a result of this
remat.

Not doing this can affect pressure tracking.

rdar://problem/14158833

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184002 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/RegisterCoalescer.cpp
test/CodeGen/X86/remat-phys-dead.ll [new file with mode: 0644]