]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
ifcvt.c (check_cond_move_block): Make regs argument pointer to vector pointer.
authorJan Hubicka <jh@suse.cz>
Thu, 11 Sep 2008 12:20:42 +0000 (14:20 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Thu, 11 Sep 2008 12:20:42 +0000 (12:20 +0000)
* ifcvt.c (check_cond_move_block): Make regs argument pointer to vector pointer.
(cond_move_process_if_block): Update call.

From-SVN: r140278

gcc/ChangeLog
gcc/ifcvt.c

index 2c331749ac7ca729e2c2ef5285f5df572b64089d..12eb46c93922284c009b5d7402497a64553bc38b 100644 (file)
@@ -1,3 +1,8 @@
+2008-09-11  Jan Hubicka  <jh@suse.cz>
+
+       * ifcvt.c (check_cond_move_block): Make regs argument pointer to vector pointer.
+       (cond_move_process_if_block): Update call.
+
 2008-09-11  Jan Hubicka  <jh@suse.cz>
 
        * toplev.c (dump_memory_report): Call dump_vec_loc_statistics.
index aef71a7511e992f5463190e5a8b4ca0dbb4efee2..66a65a4a7ab34b817150271ac6ea20b016eb0d2d 100644 (file)
@@ -2459,7 +2459,7 @@ noce_process_if_block (struct noce_if_info *if_info)
    REGS.  COND is the condition we will test.  */
 
 static int
-check_cond_move_block (basic_block bb, rtx *vals, VEC (int, heap) *regs, rtx cond)
+check_cond_move_block (basic_block bb, rtx *vals, VEC (int, heap) **regs, rtx cond)
 {
   rtx insn;
 
@@ -2520,7 +2520,7 @@ check_cond_move_block (basic_block bb, rtx *vals, VEC (int, heap) *regs, rtx con
 
       vals[REGNO (dest)] = src;
 
-      VEC_safe_push (int, heap, regs, REGNO (dest));
+      VEC_safe_push (int, heap, *regs, REGNO (dest));
     }
 
   return TRUE;
@@ -2621,8 +2621,8 @@ cond_move_process_if_block (struct noce_if_info *if_info)
   memset (else_vals, 0, size);
 
   /* Make sure the blocks are suitable.  */
-  if (!check_cond_move_block (then_bb, then_vals, then_regs, cond)
-      || (else_bb && !check_cond_move_block (else_bb, else_vals, else_regs, cond)))
+  if (!check_cond_move_block (then_bb, then_vals, &then_regs, cond)
+      || (else_bb && !check_cond_move_block (else_bb, else_vals, &else_regs, cond)))
     {
       VEC_free (int, heap, then_regs);
       VEC_free (int, heap, else_regs);