nv/codegen: Delete unused OP_CONSTRAINT

Reviewed-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24791>
This commit is contained in:
M Henning 2023-08-19 12:39:56 -04:00
parent dcec14c51e
commit eae6800ec3
7 changed files with 4 additions and 9 deletions

View file

@ -45,7 +45,6 @@ enum operation
OP_UNION, // unify a new definition and several source values
OP_SPLIT, // $r0d -> { $r0, $r1 } ($r0d and $r0/$r1 will be coalesced)
OP_MERGE, // opposite of split, e.g. combine 2 32 bit into a 64 bit value
OP_CONSTRAINT, // copy values into consecutive registers
OP_MOV, // simple copy, no modifiers allowed
OP_LOAD,
OP_STORE,

View file

@ -2751,7 +2751,6 @@ CodeEmitterGK110::emitInstruction(Instruction *insn)
break;
case OP_PHI:
case OP_UNION:
case OP_CONSTRAINT:
ERROR("operation should have been eliminated");
return false;
case OP_SQRT:

View file

@ -2125,7 +2125,6 @@ CodeEmitterNV50::emitInstruction(Instruction *insn)
break;
case OP_PHI:
case OP_UNION:
case OP_CONSTRAINT:
ERROR("operation should have been eliminated\n");
return false;
case OP_SQRT:

View file

@ -2933,7 +2933,6 @@ CodeEmitterNVC0::emitInstruction(Instruction *insn)
break;
case OP_PHI:
case OP_UNION:
case OP_CONSTRAINT:
ERROR("operation should have been eliminated");
return false;
case OP_SQRT:

View file

@ -33,7 +33,7 @@ namespace nv50_ir {
bool
Instruction::isNop() const
{
if (op == OP_PHI || op == OP_SPLIT || op == OP_MERGE || op == OP_CONSTRAINT)
if (op == OP_PHI || op == OP_SPLIT || op == OP_MERGE)
return true;
if (terminator || join) // XXX: should terminator imply flow ?
return false;

View file

@ -74,7 +74,6 @@ const char *operationStr[OP_LAST + 1] =
"union",
"split",
"merge",
"consec",
"mov",
"ld",
"st",

View file

@ -28,7 +28,7 @@ namespace nv50_ir {
const uint8_t Target::operationSrcNr[] =
{
0, 0, // NOP, PHI
0, 0, 0, 0, // UNION, SPLIT, MERGE, CONSTRAINT
0, 0, 0, // UNION, SPLIT, MERGE
1, 1, 2, // MOV, LOAD, STORE
2, 2, 2, 2, 2, 3, 3, 3, // ADD, SUB, MUL, DIV, MOD, MAD, FMA, SAD
3, 3, // SHLADD, XMAD
@ -65,10 +65,10 @@ const uint8_t Target::operationSrcNr[] =
const OpClass Target::operationClass[] =
{
// NOP; PHI; UNION, SPLIT, MERGE, CONSTRAINT
// NOP; PHI; UNION, SPLIT, MERGE
OPCLASS_OTHER,
OPCLASS_PSEUDO,
OPCLASS_PSEUDO, OPCLASS_PSEUDO, OPCLASS_PSEUDO, OPCLASS_PSEUDO,
OPCLASS_PSEUDO, OPCLASS_PSEUDO, OPCLASS_PSEUDO,
// MOV; LOAD; STORE
OPCLASS_MOVE,
OPCLASS_LOAD,