mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-20 05:50:27 +01:00
glsl: Skip processing expression trees in do_if_simplification().
Reduces time spent in this during glean texCombine by about 2/3.
This commit is contained in:
parent
d3a444af2d
commit
991fa4d3d0
1 changed files with 10 additions and 0 deletions
|
|
@ -38,10 +38,20 @@ public:
|
|||
}
|
||||
|
||||
ir_visitor_status visit_leave(ir_if *);
|
||||
ir_visitor_status visit_enter(ir_assignment *);
|
||||
|
||||
bool made_progress;
|
||||
};
|
||||
|
||||
/* We only care about the top level "if" instructions, so don't
|
||||
* descend into expressions.
|
||||
*/
|
||||
ir_visitor_status
|
||||
ir_if_simplification_visitor::visit_enter(ir_assignment *ir)
|
||||
{
|
||||
return visit_continue_with_parent;
|
||||
}
|
||||
|
||||
bool
|
||||
do_if_simplification(exec_list *instructions)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue