sched-deps.c (update_dep): Mark arguments with ATTRIBUTE_UNUSED.

* sched-deps.c (update_dep): Mark arguments with ATTRIBUTE_UNUSED.
	(sched_analyze_insn): Don't postprocess speculative dependencies when
	target has no scheduling.
	* tree-vect-transform.c (vect_estimate_min_profitable_iters): Fix
	'uninitialized' warning.

From-SVN: r127989
This commit is contained in:
Maxim Kuvyrkov 2007-08-31 13:08:55 +00:00 committed by Maxim Kuvyrkov
parent 194ee011d8
commit a34ef915e1
3 changed files with 14 additions and 2 deletions

View File

@ -1,3 +1,11 @@
2007-08-31 Maxim Kuvyrkov <maxim@codesourcery.com>
* sched-deps.c (update_dep): Mark arguments with ATTRIBUTE_UNUSED.
(sched_analyze_insn): Don't postprocess speculative dependencies when
target has no scheduling.
* tree-vect-transform.c (vect_estimate_min_profitable_iters): Fix
'uninitialized' warning.
2007-08-31 Richard Guenther <rguenther@suse.de>
* tree.c (build_complex_type): Always set TYPE_NAME for

View File

@ -943,7 +943,9 @@ change_spec_dep_to_hard (sd_iterator_def sd_it)
data-speculative dependence should be updated. */
static enum DEPS_ADJUST_RESULT
update_dep (dep_t dep, dep_t new_dep,
sd_iterator_def sd_it, rtx mem1, rtx mem2)
sd_iterator_def sd_it ATTRIBUTE_UNUSED,
rtx mem1 ATTRIBUTE_UNUSED,
rtx mem2 ATTRIBUTE_UNUSED)
{
enum DEPS_ADJUST_RESULT res = DEP_PRESENT;
enum reg_note old_type = DEP_TYPE (dep);
@ -2200,6 +2202,7 @@ sched_analyze_insn (struct deps *deps, rtx x, rtx insn)
if (SCHED_GROUP_P (insn))
fixup_sched_groups (insn);
#ifdef INSN_SCHEDULING
if ((current_sched_info->flags & DO_SPECULATION)
&& !sched_insn_is_legitimate_for_speculation_p (insn, 0))
/* INSN has an internal dependency (e.g. r14 = [r14]) and thus cannot
@ -2212,6 +2215,7 @@ sched_analyze_insn (struct deps *deps, rtx x, rtx insn)
sd_iterator_cond (&sd_it, &dep);)
change_spec_dep_to_hard (sd_it);
}
#endif
}
/* Analyze every insn between HEAD and TAIL inclusive, creating backward

View File

@ -124,7 +124,7 @@ vect_estimate_min_profitable_iters (loop_vec_info loop_vinfo)
basic_block *bbs = LOOP_VINFO_BBS (loop_vinfo);
int nbbs = loop->num_nodes;
int byte_misalign;
int innerloop_iters, factor;
int innerloop_iters = 0, factor;
/* Cost model disabled. */
if (!flag_vect_cost_model)