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:
parent
3723ff5223
commit
07d3972b49
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue