nir: Copy propagate through vec8s and vec16s

Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4365>
This commit is contained in:
Jason Ekstrand 2020-03-28 11:23:52 -05:00 committed by Marge Bot
parent 842338e2f0
commit f5bbdf7621
1 changed files with 2 additions and 3 deletions

View File

@ -61,9 +61,8 @@ static bool is_vec(nir_alu_instr *instr)
return false;
}
return instr->op == nir_op_vec2 ||
instr->op == nir_op_vec3 ||
instr->op == nir_op_vec4;
assert(instr->dest.dest.is_ssa);
return nir_op_is_vec(instr->op);
}
static bool