diff options
author | bernds <bernds@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-07-13 10:18:32 +0000 |
---|---|---|
committer | bernds <bernds@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-07-13 10:18:32 +0000 |
commit | 38354bb698503a466e5283bbf9282f0b40ab8e2c (patch) | |
tree | fb8bf8be019b0110f5a291264ebbc7b8c6c33ab7 /gcc/sched-deps.c | |
parent | ef3ab47f2b8bafc52617570f7cfa91ff2d29beab (diff) | |
download | gcc-38354bb698503a466e5283bbf9282f0b40ab8e2c.tar.gz |
* sched-int.h (struct _dep): Add member cost.
(DEP_COST, UNKNOWN_DEP_COST): New macros.
* sched-deps.c (init_dep_1): Initialize DEP_COST.
* haifa-sched.c (dep_cost_1): Use and set DEP_COST.
(sched_change_pattern): Reset it for dependent insns.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@176226 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/sched-deps.c')
-rw-r--r-- | gcc/sched-deps.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/sched-deps.c b/gcc/sched-deps.c index 343d03ce962..4ceea72d876 100644 --- a/gcc/sched-deps.c +++ b/gcc/sched-deps.c @@ -107,6 +107,7 @@ init_dep_1 (dep_t dep, rtx pro, rtx con, enum reg_note type, ds_t ds) DEP_CON (dep) = con; DEP_TYPE (dep) = type; DEP_STATUS (dep) = ds; + DEP_COST (dep) = UNKNOWN_DEP_COST; } /* Init DEP with the arguments. |