void
find_lowerable_rvalues_visitor::pop_stack_entry()
{
- const stack_entry &entry = stack.end()[-1];
+ const stack_entry &entry = stack.back();
if (stack.size() >= 2) {
/* Combine this state into the parent state, unless the parent operation
stack_enter(ir, this);
if (!can_lower_type(ir->type))
- stack.end()[-1].state = CANT_LOWER;
+ stack.back().state = CANT_LOWER;
stack_leave(ir, this);
{
stack_enter(ir, this);
- if (stack.end()[-1].state == UNKNOWN)
- stack.end()[-1].state = handle_precision(ir->type, ir->precision());
+ if (stack.back().state == UNKNOWN)
+ stack.back().state = handle_precision(ir->type, ir->precision());
stack_leave(ir, this);
{
ir_hierarchical_visitor::visit_enter(ir);
- if (stack.end()[-1].state == UNKNOWN)
- stack.end()[-1].state = handle_precision(ir->type, ir->precision());
+ if (stack.back().state == UNKNOWN)
+ stack.back().state = handle_precision(ir->type, ir->precision());
return visit_continue;
}
{
ir_hierarchical_visitor::visit_enter(ir);
- if (stack.end()[-1].state == UNKNOWN)
- stack.end()[-1].state = handle_precision(ir->type, ir->precision());
+ if (stack.back().state == UNKNOWN)
+ stack.back().state = handle_precision(ir->type, ir->precision());
return visit_continue;
}
{
ir_hierarchical_visitor::visit_enter(ir);
- if (stack.end()[-1].state == UNKNOWN) {
+ if (stack.back().state == UNKNOWN) {
/* The precision of the sample value depends on the precision of the
* sampler.
*/
- stack.end()[-1].state = handle_precision(ir->type,
- ir->sampler->precision());
+ stack.back().state = handle_precision(ir->type,
+ ir->sampler->precision());
}
return visit_continue;
ir_hierarchical_visitor::visit_enter(ir);
if (!can_lower_type(ir->type))
- stack.end()[-1].state = CANT_LOWER;
+ stack.back().state = CANT_LOWER;
/* Don't lower precision for derivative calculations */
if (ir->operation == ir_unop_dFdx ||
ir->operation == ir_unop_dFdy ||
ir->operation == ir_unop_dFdy_coarse ||
ir->operation == ir_unop_dFdy_fine) {
- stack.end()[-1].state = CANT_LOWER;
+ stack.back().state = CANT_LOWER;
}
return visit_continue;