nir: Relax opt_if logic to prevent re-merging 64bit phis for loop headers

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6313>
This commit is contained in:
Jesse Natalie
2020-06-08 05:56:59 -07:00
committed by Marge Bot
parent 43d22c8f20
commit 0d595f72b2

View File

@@ -292,8 +292,7 @@ static bool
alu_instr_is_type_conversion(const nir_alu_instr *alu)
{
return nir_op_infos[alu->op].num_inputs == 1 &&
nir_alu_type_get_base_type(nir_op_infos[alu->op].output_type) !=
nir_alu_type_get_base_type(nir_op_infos[alu->op].input_types[0]);
nir_op_infos[alu->op].output_type != nir_op_infos[alu->op].input_types[0];
}
/**