As there are quite a lot of movement related to vec4 optimizations and I would like to avoid overlapping, I am commenting here that I intend to work on a version of the fs_visitor::opt_peephole_sel() for vec4. Suggestions about other FS optimizations worth porting to the vec4 backend are welcome.