aboutsummaryrefslogtreecommitdiff
path: root/gcc/sched-int.h
diff options
context:
space:
mode:
authorBernd Schmidt <bernds@codesourcery.com>2011-07-13 10:18:32 +0000
committerBernd Schmidt <bernds@gcc.gnu.org>2011-07-13 10:18:32 +0000
commita19af9c4e401e168f46180adab9210a6fdb1757e (patch)
treefb8bf8be019b0110f5a291264ebbc7b8c6c33ab7 /gcc/sched-int.h
parent2d1efe2d2d19872257bffb1561838805eb5f4fab (diff)
downloadgcc-a19af9c4e401e168f46180adab9210a6fdb1757e.zip
gcc-a19af9c4e401e168f46180adab9210a6fdb1757e.tar.gz
gcc-a19af9c4e401e168f46180adab9210a6fdb1757e.tar.bz2
sched-int.h (struct _dep): Add member cost.
* 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. From-SVN: r176226
Diffstat (limited to 'gcc/sched-int.h')
-rw-r--r--gcc/sched-int.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/sched-int.h b/gcc/sched-int.h
index f310f8a..8b39a22 100644
--- a/gcc/sched-int.h
+++ b/gcc/sched-int.h
@@ -215,6 +215,9 @@ struct _dep
/* Dependency status. This field holds all dependency types and additional
information for speculative dependencies. */
ds_t status;
+
+ /* Cached cost of the dependency. */
+ int cost;
};
typedef struct _dep dep_def;
@@ -224,6 +227,9 @@ typedef dep_def *dep_t;
#define DEP_CON(D) ((D)->con)
#define DEP_TYPE(D) ((D)->type)
#define DEP_STATUS(D) ((D)->status)
+#define DEP_COST(D) ((D)->cost)
+
+#define UNKNOWN_DEP_COST INT_MIN
/* Functions to work with dep. */