Commit 1b513b77 by Jan Hubicka Committed by Jan Hubicka

* function.c (epilogue_done): Pass whole insn to record_insns.

From-SVN: r33488
parent 8e02c4d0
Thu Apr 27 17:33:05 MET DST 2000 Jan Hubicka <jh@suse.cz>
* function.c (epilogue_done): Pass whole insn to record_insns.
Thu Apr 27 16:55:28 MET DST 2000 Jan Hubicka <jh@suse.cz>
* cse.c (CSE_ADDRESS_COST): Remove.
......
......@@ -4000,6 +4000,8 @@ mark_set_1 (pbi, code, reg, cond, insn, flags)
|| GET_CODE (reg) == ZERO_EXTRACT
|| GET_CODE (reg) == SIGN_EXTRACT
|| GET_CODE (reg) == STRICT_LOW_PART);
if (GET_CODE (reg) == MEM)
break;
not_dead = REGNO_REG_SET_P (pbi->reg_live, REGNO (reg));
/* FALLTHRU */
......
......@@ -7025,6 +7025,7 @@ epilogue_done:
basic_block bb = e->src;
rtx insn = bb->end;
rtx i;
rtx newinsn;
if (GET_CODE (insn) != CALL_INSN
|| ! SIBLING_CALL_P (insn))
......@@ -7035,7 +7036,7 @@ epilogue_done:
end_sequence ();
i = PREV_INSN (insn);
emit_insn_before (seq, insn);
newinsn = emit_insn_before (seq, insn);
/* Update the UID to basic block map. */
for (i = NEXT_INSN (i); i != insn; i = NEXT_INSN (i))
......@@ -7043,7 +7044,8 @@ epilogue_done:
/* Retain a map of the epilogue insns. Used in life analysis to
avoid getting rid of sibcall epilogue insns. */
record_insns (seq, &sibcall_epilogue);
record_insns (GET_CODE (seq) == SEQUENCE
? seq : newinsn, &sibcall_epilogue);
}
#endif
}
......
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