reg-stack.c (subst_asm_stack_regs): Call replace_reg also for clobbers.

* reg-stack.c (subst_asm_stack_regs): Call replace_reg also
	for clobbers.  Remove obsolete comment.

From-SVN: r264216
This commit is contained in:
Uros Bizjak 2018-09-11 21:36:35 +02:00 committed by Uros Bizjak
parent 0e4cb16f56
commit 1f621085b8
2 changed files with 6 additions and 7 deletions

View File

@ -1,3 +1,8 @@
2018-09-11 Uros Bizjak <ubizjak@gmail.com>
* reg-stack.c (subst_asm_stack_regs): Call replace_reg also
for clobbers. Remove obsolete comment.
2018-09-11 Uros Bizjak <ubizjak@gmail.com>
* config/i386/i386.md (define_attr "type"): Remove mpxmov, mpxmk,

View File

@ -2275,13 +2275,7 @@ subst_asm_stack_regs (rtx_insn *insn, stack_ptr regstack)
int regnum = get_hard_regnum (regstack, clobber_reg[i]);
if (regnum >= 0)
{
/* Sigh - clobbers always have QImode. But replace_reg knows
that these regs can't be MODE_INT and will assert. Just put
the right reg there without calling replace_reg. */
*clobber_loc[i] = FP_MODE_REG (regnum, DFmode);
}
replace_reg (clobber_loc[i], regnum);
}
/* Now remove from REGSTACK any inputs that the asm implicitly popped. */