diff options
author | Maciej W. Rozycki <macro@linux-mips.org> | 2020-12-13 20:46:16 +0000 |
---|---|---|
committer | Maciej W. Rozycki <macro@linux-mips.org> | 2020-12-13 20:46:16 +0000 |
commit | 3530ca075b083bca889ab9cdcc28d731df3a9088 (patch) | |
tree | 146cefa0b7815b6028f69eae129ae5aaaeab7d97 | |
parent | 20d68fa0d816a1aa77ead82317d3bdae77490edf (diff) | |
download | gcc-3530ca075b083bca889ab9cdcc28d731df3a9088.zip gcc-3530ca075b083bca889ab9cdcc28d731df3a9088.tar.gz gcc-3530ca075b083bca889ab9cdcc28d731df3a9088.tar.bz2 |
VAX: Remove unused register allocation from QMATH DImode add/sub handler
An allocation is made for a temporary register, however it is unneeded,
as actually explained in the comment preceding the conditional block in
question, and consequently never used, so remove it. The `temp' rtx is
already used elsewhere in the function, which is possibly why this dead
assignment has not been warned about.
gcc/
* config/vax/vax.c (vax_expand_addsub_di_operands): Remove
unused register allocation.
-rw-r--r-- | gcc/config/vax/vax.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/gcc/config/vax/vax.c b/gcc/config/vax/vax.c index 54d83dc..57408a5 100644 --- a/gcc/config/vax/vax.c +++ b/gcc/config/vax/vax.c @@ -2082,7 +2082,6 @@ vax_expand_addsub_di_operands (rtx * operands, enum rtx_code code) { if (code == MINUS && CONSTANT_P (operands[1])) { - temp = gen_reg_rtx (DImode); emit_insn (gen_sbcdi3 (operands[0], const0_rtx, operands[2])); code = PLUS; gen_insn = gen_adcdi3; |