diff options
Diffstat (limited to 'gcc/local-alloc.c')
-rw-r--r-- | gcc/local-alloc.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/gcc/local-alloc.c b/gcc/local-alloc.c index 9945b45d14b..7cee3f5e456 100644 --- a/gcc/local-alloc.c +++ b/gcc/local-alloc.c @@ -927,13 +927,9 @@ update_equiv_regs () /* cse sometimes generates function invariants, but doesn't put a REG_EQUAL note on the insn. Since this note would be redundant, - there's no point creating it earlier than here. Don't do this - for ASM_OPERANDS since eliminate_regs doesn't support it and - it serves no useful purpose. */ - if (! note && ! rtx_varies_p (src, 0) - && GET_CODE (src) != ASM_OPERANDS) - REG_NOTES (insn) - = note = gen_rtx_EXPR_LIST (REG_EQUAL, src, REG_NOTES (insn)); + there's no point creating it earlier than here. */ + if (! note && ! rtx_varies_p (src, 0)) + note = set_unique_reg_note (insn, REG_EQUAL, src); /* Don't bother considering a REG_EQUAL note containing an EXPR_LIST since it represents a function call */ |