Commit c2fd66f4 by Richard Kenner Committed by Richard Kenner

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
parent e1a132c6
2000-12-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> 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. * toplev.c (main): Call xmalloc_set_program_name.
* gcc.c (main): Likewise. * gcc.c (main): Likewise.
......
...@@ -1131,8 +1131,8 @@ update_equiv_regs () ...@@ -1131,8 +1131,8 @@ update_equiv_regs ()
NOTE_LINE_NUMBER (equiv_insn) = NOTE_INSN_DELETED; NOTE_LINE_NUMBER (equiv_insn) = NOTE_INSN_DELETED;
NOTE_SOURCE_FILE (equiv_insn) = 0; NOTE_SOURCE_FILE (equiv_insn) = 0;
reg_equiv[regno].init_insns = reg_equiv[regno].init_insns
XEXP (reg_equiv[regno].init_insns, 1); = XEXP (reg_equiv[regno].init_insns, 1);
} }
/* Move the initialization of the register to just before /* Move the initialization of the register to just before
INSN. Update the flow information. */ INSN. Update the flow information. */
...@@ -1140,8 +1140,7 @@ update_equiv_regs () ...@@ -1140,8 +1140,7 @@ update_equiv_regs ()
{ {
rtx new_insn; rtx new_insn;
new_insn = emit_insn_before (copy_rtx (PATTERN (equiv_insn)), new_insn = emit_insn_before (PATTERN (equiv_insn), insn);
insn);
REG_NOTES (PREV_INSN (insn)) = REG_NOTES (equiv_insn); REG_NOTES (PREV_INSN (insn)) = REG_NOTES (equiv_insn);
REG_NOTES (equiv_insn) = 0; REG_NOTES (equiv_insn) = 0;
......
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