nv50/ir: avoid deleting pseudo instructions too early
authorIlia Mirkin <imirkin@alum.mit.edu>
Thu, 25 Sep 2014 01:45:07 +0000 (21:45 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Fri, 26 Sep 2014 02:15:49 +0000 (22:15 -0400)
commit0147c10c5f00b43696ba660aab604d674a75e83c
treeb4df9d99604201d1d9924c91df9fbbcee269f828
parent9d2e298dd4159651323cac54dbc43527e7fd6d16
nv50/ir: avoid deleting pseudo instructions too early

What happens is that a SPLIT operation is part of the spill node, and as
a pseudo op, the instruction gets erased after processing its first def.
However the later defs still need to refer to it, so instead delay
deleting until after that whole RA node is done processing.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=79462
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Cc: "10.2 10.3" <mesa-stable@lists.freedesktop.org>
src/gallium/drivers/nouveau/codegen/nv50_ir_ra.cpp