Commit 51e2a951 by Andreas Schwab Committed by Jeff Law

cse.c (cse_insn): Copy SRC_CONST before putting it in the REG_EQUAL note.

        * cse.c (cse_insn): Copy SRC_CONST before putting it in the
        REG_EQUAL note.

From-SVN: r26958
parent 2459d104
1999-05-17 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
* cse.c (cse_insn): Copy SRC_CONST before putting it in the
REG_EQUAL note.
1999-05-17 Mike Stump <mrs@wrs.com>
* rs6000/vxppc.h (CPP_SPEC): Fix support for vararg functions.
......
......@@ -7323,6 +7323,9 @@ cse_insn (insn, libcall_insn)
{
tem = find_reg_note (insn, REG_EQUAL, NULL_RTX);
/* Make sure that the rtx is not shared with any other insn. */
src_const = copy_rtx (src_const);
/* Record the actual constant value in a REG_EQUAL note, making
a new one if one does not already exist. */
if (tem)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment