glsl: Eliminate unused conditional assignment constructor

Reviewed-by: Matt Turner <mattst88@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14573>
This commit is contained in:
Ian Romanick
2022-01-14 17:57:53 -08:00
committed by Marge Bot
parent 50a0d0d875
commit d27e3c6adc
2 changed files with 0 additions and 23 deletions

View File

@@ -149,26 +149,6 @@ ir_assignment::whole_variable_written()
return v; return v;
} }
ir_assignment::ir_assignment(ir_dereference *lhs, ir_rvalue *rhs,
ir_rvalue *condition, unsigned write_mask)
: ir_instruction(ir_type_assignment)
{
this->condition = condition;
this->rhs = rhs;
this->lhs = lhs;
this->write_mask = write_mask;
if (lhs->type->is_scalar() || lhs->type->is_vector()) {
int lhs_components = 0;
for (int i = 0; i < 4; i++) {
if (write_mask & (1 << i))
lhs_components++;
}
assert(lhs_components == this->rhs->type->vector_elements);
}
}
ir_assignment::ir_assignment(ir_dereference *lhs, ir_rvalue *rhs, ir_assignment::ir_assignment(ir_dereference *lhs, ir_rvalue *rhs,
unsigned write_mask) unsigned write_mask)
: ir_instruction(ir_type_assignment) : ir_instruction(ir_type_assignment)

View File

@@ -1472,9 +1472,6 @@ public:
* Since a write mask is supplied, the LHS must already be a bare * Since a write mask is supplied, the LHS must already be a bare
* \c ir_dereference. The cannot be any swizzles in the LHS. * \c ir_dereference. The cannot be any swizzles in the LHS.
*/ */
ir_assignment(ir_dereference *lhs, ir_rvalue *rhs, ir_rvalue *condition,
unsigned write_mask);
ir_assignment(ir_dereference *lhs, ir_rvalue *rhs, unsigned write_mask); ir_assignment(ir_dereference *lhs, ir_rvalue *rhs, unsigned write_mask);
virtual ir_assignment *clone(void *mem_ctx, struct hash_table *ht) const; virtual ir_assignment *clone(void *mem_ctx, struct hash_table *ht) const;