nvc0: replace immd 0 with $rLASTGPR for emit/restart opcodes

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
This commit is contained in:
Ben Skeggs 2014-05-09 15:56:01 +10:00
parent 3723ff5223
commit 07d3972b49
1 changed files with 1 additions and 0 deletions

View File

@ -494,6 +494,7 @@ NVC0LegalizePostRA::visit(BasicBlock *bb)
i->setDef(0, NULL);
if (i->src(0).getFile() == FILE_IMMEDIATE)
i->setSrc(0, rZero); // initial value must be 0
replaceZero(i);
} else
if (i->isNop()) {
bb->remove(i);