diff options
author | Jan Hubicka <jh@suse.cz> | 2008-09-11 14:20:42 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2008-09-11 12:20:42 +0000 |
commit | 11e0edad1f0ad67099daee3275ae095107352f9a (patch) | |
tree | 697703d06b90b5706022b8a181fa8a6ad679564e /gcc/ifcvt.c | |
parent | d3492572d5a42d7cb1208050fd4a24d9972db141 (diff) | |
download | gcc-11e0edad1f0ad67099daee3275ae095107352f9a.tar.gz |
ifcvt.c (check_cond_move_block): Make regs argument pointer to vector pointer.
* ifcvt.c (check_cond_move_block): Make regs argument pointer to vector pointer.
(cond_move_process_if_block): Update call.
From-SVN: r140278
Diffstat (limited to 'gcc/ifcvt.c')
-rw-r--r-- | gcc/ifcvt.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/ifcvt.c b/gcc/ifcvt.c index aef71a7511e..66a65a4a7ab 100644 --- a/gcc/ifcvt.c +++ b/gcc/ifcvt.c @@ -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); |