Commit 4117a96b by J"orn Rennecke Committed by Joern Rennecke

* reload1.c (gen_reload): Create REG_EQUIV notes.

From-SVN: r19703
parent 4d3eb414
Wed May 13 03:23:45 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
* reload1.c (gen_reload): Create REG_EQUIV notes.
Tue May 12 22:21:07 1998 J"orn Rennecke <amylaar@cygnus.co.uk> Tue May 12 22:21:07 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
* reload1.c (reload): Fix check for USEs to use code of pattern. * reload1.c (reload): Fix check for USEs to use code of pattern.
......
...@@ -7244,13 +7244,19 @@ gen_reload (out, in, opnum, type) ...@@ -7244,13 +7244,19 @@ gen_reload (out, in, opnum, type)
its validity determination, i.e., the way it would after reload its validity determination, i.e., the way it would after reload
has completed. */ has completed. */
if (constrain_operands (code, 1)) if (constrain_operands (code, 1))
return insn; {
/* Add a REG_EQUIV note so that find_equiv_reg can find it. */
REG_NOTES (insn)
= gen_rtx (EXPR_LIST, REG_EQUIV, in, REG_NOTES (insn));
return insn;
}
} }
delete_insns_since (last); delete_insns_since (last);
gen_reload (out, op1, opnum, type); gen_reload (out, op1, opnum, type);
emit_insn (gen_add2_insn (out, op0)); insn = emit_insn (gen_add2_insn (out, op0));
REG_NOTES (insn) = gen_rtx (EXPR_LIST, REG_EQUIV, in, REG_NOTES (insn));
} }
#ifdef SECONDARY_MEMORY_NEEDED #ifdef SECONDARY_MEMORY_NEEDED
......
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