local-alloc.c (update_equiv_regs): Don't use copy_rtx on PATTERN.

2000-12-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>

	* local-alloc.c (update_equiv_regs): Don't use copy_rtx on PATTERN.

*** local-alloc.c	2000/11/30 21:40:33	1.75
--- local-alloc.c	2000/12/29 13:10:59
*************** update_equiv_regs ()
*** 1141,1146 ****
  		  rtx new_insn;

! 		  new_insn = emit_insn_before (copy_rtx (PATTERN (equiv_insn)),
! 					       insn);
  		  REG_NOTES (PREV_INSN (insn)) = REG_NOTES (equiv_insn);
  		  REG_NOTES (equiv_insn) = 0;
--- 1141,1145 ----
  		  rtx new_insn;

! 		  new_insn = emit_insn_before (PATTERN (equiv_insn), insn);
  		  REG_NOTES (PREV_INSN (insn)) = REG_NOTES (equiv_insn);
  		  REG_NOTES (equiv_insn) = 0;

From-SVN: r38536
This commit is contained in:
Richard Kenner 2000-12-29 13:13:42 +00:00 committed by Richard Kenner
parent e1a132c650
commit c2fd66f48e
2 changed files with 5 additions and 4 deletions

View File

@ -1,5 +1,7 @@
2000-12-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* local-alloc.c (update_equiv_regs): Don't use copy_rtx on PATTERN.
* toplev.c (main): Call xmalloc_set_program_name.
* gcc.c (main): Likewise.

View File

@ -1131,8 +1131,8 @@ update_equiv_regs ()
NOTE_LINE_NUMBER (equiv_insn) = NOTE_INSN_DELETED;
NOTE_SOURCE_FILE (equiv_insn) = 0;
reg_equiv[regno].init_insns =
XEXP (reg_equiv[regno].init_insns, 1);
reg_equiv[regno].init_insns
= XEXP (reg_equiv[regno].init_insns, 1);
}
/* Move the initialization of the register to just before
INSN. Update the flow information. */
@ -1140,8 +1140,7 @@ update_equiv_regs ()
{
rtx new_insn;
new_insn = emit_insn_before (copy_rtx (PATTERN (equiv_insn)),
insn);
new_insn = emit_insn_before (PATTERN (equiv_insn), insn);
REG_NOTES (PREV_INSN (insn)) = REG_NOTES (equiv_insn);
REG_NOTES (equiv_insn) = 0;