diff options
author | Andrew Pinski <pinskia@physics.uc.edu> | 2006-09-06 06:13:22 +0000 |
---|---|---|
committer | Andrew Pinski <pinskia@gcc.gnu.org> | 2006-09-05 23:13:22 -0700 |
commit | c7f965b6140ac7ac2911b04974fb539665b74abf (patch) | |
tree | 528bb95b3e49e65e4c30b14572ac1d30ded632cf /gcc/tree-ssa-loop.c | |
parent | 10b96810c0f327303ac9a7c1519848f4c51f8eca (diff) | |
download | gcc-c7f965b6140ac7ac2911b04974fb539665b74abf.zip gcc-c7f965b6140ac7ac2911b04974fb539665b74abf.tar.gz gcc-c7f965b6140ac7ac2911b04974fb539665b74abf.tar.bz2 |
re PR tree-optimization/28937 (ICE in add_virtual_operand, at tree-ssa-operands.c:1309)
2006-09-05 Andrew Pinski <pinskia@physics.uc.edu>
PR tree-opt/28937
* tree-flow.h (tree_ssa_unswitch_loops): Return unsigned int.
(canonicalize_induction_variables): Likewise.
(tree_unroll_loops_completely): Likewise.
(tree_ssa_prefetch_arrays): Likewise.
(remove_empty_loops): Likewise.
* tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Return
TODO_cleanup_cfg instead of directly calling
cleanup_tree_cfg_loop.
* tree-ssa-loop-ivcanon.c (canonicalize_induction_variables):
Likewise.
(tree_unroll_loops_completely): Likewise.
(remove_empty_loops): Likewise.
* tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Likewise.
* tree-ssa-loop.c (tree_ssa_loop_unswitch): Use the return value
of tree_ssa_unswitch_loops.
(tree_ssa_loop_ivcanon): Use the return value of
canonicalize_induction_variables.
(tree_ssa_empty_loop): Use the return value of
remove_empty_loops.
(tree_complete_unroll): Use the return value of
tree_unroll_loops_completely.
(tree_ssa_loop_prefetch): Use the return value of
tree_ssa_prefetch_arrays.
* passes.c (execute_todo): Before Cleanup CFG, set
updating_used_alone and after cleanup CFG, call
recalculate_used_alone.
2006-09-05 Andrew Pinski <pinskia@physics.uc.edu>
PR tree-opt/28937
* g++.dg/opt/unroll2.C: New test.
From-SVN: r116717
Diffstat (limited to 'gcc/tree-ssa-loop.c')
-rw-r--r-- | gcc/tree-ssa-loop.c | 21 |
1 files changed, 8 insertions, 13 deletions
diff --git a/gcc/tree-ssa-loop.c b/gcc/tree-ssa-loop.c index ee1b9b3..475f31e 100644 --- a/gcc/tree-ssa-loop.c +++ b/gcc/tree-ssa-loop.c @@ -158,8 +158,7 @@ tree_ssa_loop_unswitch (void) if (!current_loops) return 0; - tree_ssa_unswitch_loops (current_loops); - return 0; + return tree_ssa_unswitch_loops (current_loops); } static bool @@ -260,8 +259,7 @@ tree_ssa_loop_ivcanon (void) if (!current_loops) return 0; - canonicalize_induction_variables (current_loops); - return 0; + return canonicalize_induction_variables (current_loops); } static bool @@ -322,8 +320,7 @@ tree_ssa_empty_loop (void) if (!current_loops) return 0; - remove_empty_loops (current_loops); - return 0; + return remove_empty_loops (current_loops); } struct tree_opt_pass pass_empty_loop = @@ -381,11 +378,10 @@ tree_complete_unroll (void) if (!current_loops) return 0; - tree_unroll_loops_completely (current_loops, - flag_unroll_loops - || flag_peel_loops - || optimize >= 3); - return 0; + return tree_unroll_loops_completely (current_loops, + flag_unroll_loops + || flag_peel_loops + || optimize >= 3); } static bool @@ -419,8 +415,7 @@ tree_ssa_loop_prefetch (void) if (!current_loops) return 0; - tree_ssa_prefetch_arrays (current_loops); - return 0; + return tree_ssa_prefetch_arrays (current_loops); } static bool |