+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>
* reload1.c (reload): Fix check for USEs to use code of pattern.
its validity determination, i.e., the way it would after reload
has completed. */
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);
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