Patchwork committed: Fix PR44640 (2/2)

login
register
mail settings
Submitter Joern Rennecke
Date June 23, 2010, 12:43 p.m.
Message ID <20100623084314.bwco5n0rvo084wcg-nzlynne@webmail.spamcop.net>
Download mbox | patch
Permalink /patch/56673/
State New
Headers show

Comments

Joern Rennecke - June 23, 2010, 12:43 p.m.
build & regression tested on i686-pc-linux-gnu X spu-elf in revision 161211.
Checked in as obvious.
2010-02-18  Joern Rennecke  <joern.rennecke@embecosm.com>

	* config/spu/spu.c (ea_load_store_inline): Use add_reg_note.

Patch

Index: config/spu/spu.c
===================================================================
--- config/spu/spu.c	(revision 161213)
+++ config/spu/spu.c	(working copy)
@@ -4488,8 +4488,7 @@  ea_load_store_inline (rtx mem, bool is_s
 							    hit_ref, pc_rtx)));
   /* Say that this branch is very likely to happen.  */
   v = REG_BR_PROB_BASE - REG_BR_PROB_BASE / 100 - 1;
-  REG_NOTES (insn)
-    = gen_rtx_EXPR_LIST (REG_BR_PROB, GEN_INT (v), REG_NOTES (insn));
+  add_reg_note (insn, REG_BR_PROB, GEN_INT (v));
 
   ea_load_store (mem, is_store, ea_addr, data_addr);
   cont_label = gen_label_rtx ();