aboutsummaryrefslogtreecommitdiff
path: root/gcc/sched-deps.c
diff options
context:
space:
mode:
authorSteven Bosscher <steven@gcc.gnu.org>2013-05-25 10:31:43 +0000
committerSteven Bosscher <steven@gcc.gnu.org>2013-05-25 10:31:43 +0000
commit8e90de434e27d80be6b483c6e0d7369ea93a8bbb (patch)
treec8ab9fbf060c20d9e04751197d11b9393d752bd0 /gcc/sched-deps.c
parenta544998ee31436a079b74ff6e29c5d4ade7b6ba7 (diff)
downloadgcc-8e90de434e27d80be6b483c6e0d7369ea93a8bbb.zip
gcc-8e90de434e27d80be6b483c6e0d7369ea93a8bbb.tar.gz
gcc-8e90de434e27d80be6b483c6e0d7369ea93a8bbb.tar.bz2
sched-int.h (ds_t, dw_t): Make unsigned int.
* sched-int.h (ds_t, dw_t): Make unsigned int. Fix documentation that describes how all the ds_t bits are used. Reserve the last bit for delayed-branch scheduling. (BITS_PER_DEP_STATUS): Move to ds_t typedef. (BITS_PER_DEP_WEAK): Fix definition and documentation. (gen_dep_weak_1): Remove prototype. * sched-deps.c (get_dep_weak_1): Make static. * target.def (speculate_insn, needs_block_p, gen_spec_check, get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes. * doc/tm.texi: Regenerate. * config/ia64/ia64.c (ia64_needs_block_p): Update prototype. From-SVN: r199325
Diffstat (limited to 'gcc/sched-deps.c')
-rw-r--r--gcc/sched-deps.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/sched-deps.c b/gcc/sched-deps.c
index fde684f..c7ef1d8 100644
--- a/gcc/sched-deps.c
+++ b/gcc/sched-deps.c
@@ -4170,8 +4170,9 @@ add_dependence_1 (rtx insn, rtx elem, enum reg_note dep_type)
cur_insn = NULL;
}
-/* Return weakness of speculative type TYPE in the dep_status DS. */
-dw_t
+/* Return weakness of speculative type TYPE in the dep_status DS,
+ without checking to prevent ICEs on malformed input. */
+static dw_t
get_dep_weak_1 (ds_t ds, ds_t type)
{
ds = ds & type;
@@ -4188,6 +4189,7 @@ get_dep_weak_1 (ds_t ds, ds_t type)
return (dw_t) ds;
}
+/* Return weakness of speculative type TYPE in the dep_status DS. */
dw_t
get_dep_weak (ds_t ds, ds_t type)
{