mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 17:30:12 +01:00
Descend down the tree in more locations in constant folding.
This commit is contained in:
parent
bae5be356e
commit
e5a9e70cde
1 changed files with 3 additions and 1 deletions
|
|
@ -73,6 +73,8 @@ ir_constant_folding_visitor::visit(ir_expression *ir)
|
|||
op[operand] = ir->operands[operand]->constant_expression_value();
|
||||
if (op[operand]) {
|
||||
ir->operands[operand] = op[operand];
|
||||
} else {
|
||||
ir->operands[operand]->accept(this);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -81,7 +83,7 @@ ir_constant_folding_visitor::visit(ir_expression *ir)
|
|||
void
|
||||
ir_constant_folding_visitor::visit(ir_swizzle *ir)
|
||||
{
|
||||
(void) ir;
|
||||
ir->val->accept(this);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue