nir: remove redundant opcode u2ump

Reviewed-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6283>
This commit is contained in:
Marek Olšák
2020-09-04 01:51:49 -04:00
committed by Marge Bot
parent 26fc5e1f4a
commit 3d3df8dbff
5 changed files with 15 additions and 11 deletions

View File

@@ -1990,7 +1990,7 @@ nir_visitor::visit(ir_expression *ir)
}
case ir_unop_u2ump: {
result = nir_build_alu(&b, nir_op_u2ump, srcs[0], NULL, NULL, NULL);
result = nir_build_alu(&b, nir_op_i2imp, srcs[0], NULL, NULL, NULL);
break;
}