aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-optimize.c
diff options
context:
space:
mode:
authorDaniel Berlin <dberlin@dberlin.org>2004-11-01 18:08:02 +0000
committerDaniel Berlin <dberlin@gcc.gnu.org>2004-11-01 18:08:02 +0000
commit464f49d80df8a5232a956a1ccc8ef78bd25b0110 (patch)
tree13c080b6513fecb915f215d79235d8f610719b6a /gcc/tree-optimize.c
parentd68e653fae9b7747fcbdcd4b0722bf62aee2214e (diff)
downloadgcc-464f49d80df8a5232a956a1ccc8ef78bd25b0110.zip
gcc-464f49d80df8a5232a956a1ccc8ef78bd25b0110.tar.gz
gcc-464f49d80df8a5232a956a1ccc8ef78bd25b0110.tar.bz2
Fix PR tree-optimization/17672 Fix PR tree-optimization/18168
2004-10-16 Daniel Berlin <dberlin@dberlin.org> Fix PR tree-optimization/17672 Fix PR tree-optimization/18168 * lambda-code.c (lambda_lattice_compute_base): Fix reversed assert test. (gcc_tree_to_linear_expression): Add extra to existing constant. (depth_of_nest): Factor out function used in various places. (gcc_loop_to_lambda_loop): Clean up code a little bit. No functional changes. (find_induction_var_from_exit_cond): Stop guessing, and just get the right answer :). (gcc_loopnest_to_lambda_loopnest): Remove useless pre-allocation. Print out message about result of attempt to create perfect nest. (lbv_to_gcc_expression): Add type argument, use it to do math and induction variable creation. (lle_to_gcc_expression): Ditto. (lambda_loopnest_to_gcc_loopnest): Create new iv with same type as oldiv. Pass type argument to lle_to_gcc_expression and lbv_to_gcc_expression. Reset number of iterations after transformation. (perfect_nestify): Remove useless pre-allocation, and cleanup a small amount. * tree-data-ref.c (build_classic_dist_vector): Return false for dependences completely outside of the loop nest we asked about. (build_classic_dir_vector): Ditto. (compute_data_dependences_for_loop): Only add dependence relations inside the loop we asked about. * tree-loop-linear.c (linear_transform_loops): Use DDR_SIZE_VECT. Compute immediate uses. * tree-optimize.c: Move linear_transform_loops to before ivcanon. From-SVN: r89945
Diffstat (limited to 'gcc/tree-optimize.c')
-rw-r--r--gcc/tree-optimize.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/tree-optimize.c b/gcc/tree-optimize.c
index e2eb881..7089c27 100644
--- a/gcc/tree-optimize.c
+++ b/gcc/tree-optimize.c
@@ -392,11 +392,11 @@ init_tree_optimization_passes (void)
NEXT_PASS (pass_loop_init);
NEXT_PASS (pass_lim);
NEXT_PASS (pass_unswitch);
- NEXT_PASS (pass_iv_canon);
NEXT_PASS (pass_record_bounds);
+ NEXT_PASS (pass_linear_transform);
+ NEXT_PASS (pass_iv_canon);
NEXT_PASS (pass_if_conversion);
NEXT_PASS (pass_vectorize);
- NEXT_PASS (pass_linear_transform);
NEXT_PASS (pass_complete_unroll);
NEXT_PASS (pass_iv_optimize);
NEXT_PASS (pass_loop_done);