diff options
author | Jonathan Marek <[email protected]> | 2019-06-20 23:22:02 -0400 |
---|---|---|
committer | Jonathan Marek <[email protected]> | 2019-06-26 15:26:10 -0400 |
commit | a70ff70158a22003948f449343a55ad47ce73996 (patch) | |
tree | 8c63961a7b3efc65e8cc4203d9a42d83e306c2c3 /src/gallium/drivers/nouveau/codegen | |
parent | 0b5a483baaefa9a7e39c76607d8f0f435aa46315 (diff) |
nir: remove fnot/fxor/fand/for opcodes
There doesn't seem to be any reason to keep these opcodes around:
* fnot/fxor are not used at all.
* fand/for are only used in lower_alu_to_scalar, but easily replaced
Signed-off-by: Jonathan Marek <[email protected]>
Reviewed-by: Eric Anholt <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/gallium/drivers/nouveau/codegen')
-rw-r--r-- | src/gallium/drivers/nouveau/codegen/nv50_ir_from_nir.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_from_nir.cpp b/src/gallium/drivers/nouveau/codegen/nv50_ir_from_nir.cpp index a9089ea7b59..13990567987 100644 --- a/src/gallium/drivers/nouveau/codegen/nv50_ir_from_nir.cpp +++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_from_nir.cpp @@ -348,7 +348,6 @@ Converter::getOperation(nir_op op) case nir_op_fadd: case nir_op_iadd: return OP_ADD; - case nir_op_fand: case nir_op_iand: return OP_AND; case nir_op_ifind_msb: @@ -417,10 +416,8 @@ Converter::getOperation(nir_op op) case nir_op_fneg: case nir_op_ineg: return OP_NEG; - case nir_op_fnot: case nir_op_inot: return OP_NOT; - case nir_op_for: case nir_op_ior: return OP_OR; case nir_op_fpow: @@ -456,7 +453,6 @@ Converter::getOperation(nir_op op) return OP_SUB; case nir_op_ftrunc: return OP_TRUNC; - case nir_op_fxor: case nir_op_ixor: return OP_XOR; default: @@ -2705,7 +2701,6 @@ Converter::visit(nir_alu_instr *insn) case nir_op_iabs: case nir_op_fadd: case nir_op_iadd: - case nir_op_fand: case nir_op_iand: case nir_op_fceil: case nir_op_fcos: @@ -2737,9 +2732,7 @@ Converter::visit(nir_alu_instr *insn) case nir_op_umul_high: case nir_op_fneg: case nir_op_ineg: - case nir_op_fnot: case nir_op_inot: - case nir_op_for: case nir_op_ior: case nir_op_pack_64_2x32_split: case nir_op_fpow: @@ -2756,7 +2749,6 @@ Converter::visit(nir_alu_instr *insn) case nir_op_isub: case nir_op_ftrunc: case nir_op_ishl: - case nir_op_fxor: case nir_op_ixor: { DEFAULT_CHECKS; LValues &newDefs = convert(&insn->dest); |