Yes, I think what is really needed here is a class that only ignores
IR related to declaration and expression statements.

This would allow lower_jumps to avoid caring about stuff like
ir_texture that it doesn't care about at all.

Would this be acceptable?

BTW, using hierarchical_visitor is less natural, because we need to
get a result block_record from each branch of ifs, and we want to
truncate immediately after terminators (hierarchical_visitor isn't
safe for that because it keeps the next pointer).
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to