* config/spu/spu.c (ea_load_store_inline): Use add_reg_note.
authorJoern Rennecke <joern.rennecke@embecosm.com>
Wed, 23 Jun 2010 12:31:08 +0000 (12:31 +0000)
committerJoern Rennecke <amylaar@gcc.gnu.org>
Wed, 23 Jun 2010 12:31:08 +0000 (13:31 +0100)
From-SVN: r161275

gcc/ChangeLog
gcc/config/spu/spu.c

index 3b5d4fede3259696963b7607e00ac2e1d357bcd2..5a7d0a6d7cee5b9dd4184f88f0307ebfbd54dd1d 100644 (file)
@@ -6,6 +6,8 @@
        (spu_handle_vector_attribute, spu_pass_by_reference): Likewise.
        (spu_rtx_costs, spu_function_ok_for_sibcall): Likewise.
 
+       * config/spu/spu.c (ea_load_store_inline): Use add_reg_note.
+
 2010-06-23  Arnaud Charlet  <charlet@adacore.com
 
        PR ada/22220
index a756178c24c9c7e4eb37c89d2769e6dffb804950..0c3fc71224242b2eedcc8473147402131ae40f20 100644 (file)
@@ -4488,8 +4488,7 @@ ea_load_store_inline (rtx mem, bool is_store, rtx ea_addr, rtx data_addr)
                                                            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 ();