Re: [Mesa-dev] [PATCH RFC 05/11] glsl: add loop jump visitor

2014-01-27 Thread Paul Berry
On 22 January 2014 09:16, Connor Abbott wrote: > +class ir_loop_jumps_visitor : public ir_hierarchical_visitor > +{ > +public: > + ir_loop_jumps_visitor(); > + ~ir_loop_jumps_visitor(); > + > + virtual ir_visitor_status visit_enter(ir_loop *); > + virtual ir_visitor_status visit(ir_loop_j

[Mesa-dev] [PATCH RFC 05/11] glsl: add loop jump visitor

2014-01-22 Thread Connor Abbott
This visitor will allow us to determine all the loop jumps that correspond to each loop. In SSA form, each input to a phi node is associated with a predecessor basic block. In the case of phi nodes at the beginning and end of loops, these predecessor blocks will include all blocks that end with a l