From: Maciej W. Rozycki Date: Sun, 13 Dec 2020 20:46:16 +0000 (+0000) Subject: VAX: Remove unused register allocation from QMATH DImode add/sub handler X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3530ca075b083bca889ab9cdcc28d731df3a9088;p=gcc.git 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. --- diff --git a/gcc/config/vax/vax.c b/gcc/config/vax/vax.c index 54d83dc1da2..57408a57adc 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;