glsl: Return ir_variable from compare_index_block