diff options
author | mkuvyrkov <mkuvyrkov@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-08-31 13:08:55 +0000 |
---|---|---|
committer | mkuvyrkov <mkuvyrkov@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-08-31 13:08:55 +0000 |
commit | c407d2871c8df216346ebfbb4bc39bb893669c85 (patch) | |
tree | 9a0a071d3b4fa85532c73c52cc997ffc118e50df /gcc/sched-deps.c | |
parent | 7648e770764d718c674846a49f321c223713d1ce (diff) | |
download | gcc-c407d2871c8df216346ebfbb4bc39bb893669c85.tar.gz |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@127989 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/sched-deps.c')
-rw-r--r-- | gcc/sched-deps.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/sched-deps.c b/gcc/sched-deps.c index c0d9f5588e5..433394956ab 100644 --- a/gcc/sched-deps.c +++ b/gcc/sched-deps.c @@ -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 |