From db7f006f6c557aab48165bedf91190f3fdbe50b8 Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Mon, 17 Dec 2018 11:26:21 +0100 Subject: [PATCH] orc: Remove dead assignments All those temporary registry were not used and instead were being assigned constant values. --- orc/orcrules-mmx.c | 6 +++--- orc/orcrules-sse.c | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/orc/orcrules-mmx.c b/orc/orcrules-mmx.c index 3a79628..0286261 100644 --- a/orc/orcrules-mmx.c +++ b/orc/orcrules-mmx.c @@ -2024,7 +2024,7 @@ mmx_rule_maxuw_slow (OrcCompiler *p, void *user, OrcInstruction *insn) { int src = p->vars[insn->src_args[1]].alloc; int dest = p->vars[insn->dest_args[0]].alloc; - int tmp = orc_compiler_get_temp_reg (p); + int tmp; tmp = orc_compiler_get_constant (p, 2, 0x8000); orc_mmx_emit_pxor(p, tmp, src); @@ -2221,7 +2221,7 @@ mmx_rule_addssl_slow (OrcCompiler *p, void *user, OrcInstruction *insn) { int src = p->vars[insn->src_args[1]].alloc; int dest = p->vars[insn->dest_args[0]].alloc; - int tmp = orc_compiler_get_temp_reg (p); + int tmp; #if 0 int tmp2 = orc_compiler_get_temp_reg (p); int tmp3 = orc_compiler_get_temp_reg (p); @@ -2301,7 +2301,7 @@ mmx_rule_subssl_slow (OrcCompiler *p, void *user, OrcInstruction *insn) { int src = p->vars[insn->src_args[1]].alloc; int dest = p->vars[insn->dest_args[0]].alloc; - int tmp = orc_compiler_get_temp_reg (p); + int tmp; int tmp2 = orc_compiler_get_temp_reg (p); int tmp3 = orc_compiler_get_temp_reg (p); diff --git a/orc/orcrules-sse.c b/orc/orcrules-sse.c index c2c13d5..1c23b72 100644 --- a/orc/orcrules-sse.c +++ b/orc/orcrules-sse.c @@ -2069,7 +2069,7 @@ sse_rule_maxuw_slow (OrcCompiler *p, void *user, OrcInstruction *insn) { int src = p->vars[insn->src_args[1]].alloc; int dest = p->vars[insn->dest_args[0]].alloc; - int tmp = orc_compiler_get_temp_reg (p); + int tmp; tmp = orc_compiler_get_constant (p, 2, 0x8000); orc_sse_emit_pxor(p, tmp, src); @@ -2266,7 +2266,7 @@ sse_rule_addssl_slow (OrcCompiler *p, void *user, OrcInstruction *insn) { int src = p->vars[insn->src_args[1]].alloc; int dest = p->vars[insn->dest_args[0]].alloc; - int tmp = orc_compiler_get_temp_reg (p); + int tmp; #if 0 int tmp2 = orc_compiler_get_temp_reg (p); int tmp3 = orc_compiler_get_temp_reg (p); @@ -2346,7 +2346,7 @@ sse_rule_subssl_slow (OrcCompiler *p, void *user, OrcInstruction *insn) { int src = p->vars[insn->src_args[1]].alloc; int dest = p->vars[insn->dest_args[0]].alloc; - int tmp = orc_compiler_get_temp_reg (p); + int tmp; int tmp2 = orc_compiler_get_temp_reg (p); int tmp3 = orc_compiler_get_temp_reg (p); -- 2.7.4