Commit 8d9eca14 by Jakub Jelinek Committed by Jakub Jelinek

re PR tree-optimization/42931 (-ftree-loop-linear - valgrind warns about using…

re PR tree-optimization/42931 (-ftree-loop-linear - valgrind warns about using uninitialized variable)

	PR tree-optimization/42931
	* tree-loop-linear.c (try_interchange_loops): Don't call
	double_int_mul if estimated_loop_iterations failed.

From-SVN: r156602
parent d3545524
2010-02-08 Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/42931
* tree-loop-linear.c (try_interchange_loops): Don't call
double_int_mul if estimated_loop_iterations failed.
2010-02-08 Martin Jambor <mjambor@suse.cz> 2010-02-08 Martin Jambor <mjambor@suse.cz>
PR middle-end/42898 PR middle-end/42898
......
/* Linear Loop transforms /* Linear Loop transforms
Copyright (C) 2003, 2004, 2005, 2007, 2008, 2009 Copyright (C) 2003, 2004, 2005, 2007, 2008, 2009, 2010
Free Software Foundation, Inc. Free Software Foundation, Inc.
Contributed by Daniel Berlin <dberlin@dberlin.org>. Contributed by Daniel Berlin <dberlin@dberlin.org>.
...@@ -246,9 +246,10 @@ try_interchange_loops (lambda_trans_matrix trans, ...@@ -246,9 +246,10 @@ try_interchange_loops (lambda_trans_matrix trans,
res = cmp < 0 ? res = cmp < 0 ?
estimated_loop_iterations (loop_j, false, &nb_iter): estimated_loop_iterations (loop_j, false, &nb_iter):
estimated_loop_iterations (loop_i, false, &nb_iter); estimated_loop_iterations (loop_i, false, &nb_iter);
large = double_int_mul (large, nb_iter);
if (res && double_int_ucmp (large, l1_cache_size) < 0) if (res
&& double_int_ucmp (double_int_mul (large, nb_iter),
l1_cache_size) < 0)
continue; continue;
if (dependence_steps_i < dependence_steps_j if (dependence_steps_i < dependence_steps_j
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment