diff options
author | mkuvyrkov <mkuvyrkov@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-08-06 06:23:47 +0000 |
---|---|---|
committer | mkuvyrkov <mkuvyrkov@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-08-06 06:23:47 +0000 |
commit | 86265ed0b5d4c20d9485b0aac92e10d5008605c6 (patch) | |
tree | 8f3b78a1d1981ab8d1ecf8b75384494399203c58 /gcc/haifa-sched.c | |
parent | 97ba552253e2473141a58a0829fe797af9660601 (diff) | |
download | gcc-86265ed0b5d4c20d9485b0aac92e10d5008605c6.tar.gz |
PR target/35659
* haifa-sched.c (sched_insn_is_legitimate_for_speculation_p): Move ...
* sched-deps.c (sched_insn_is_legitimate_for_speculation_p): ... here.
Don't allow predicated instructions for data speculation.
* sched-int.h (sched_insn_is_legitimate_for_speculation_p): Move
declaration.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@138759 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/haifa-sched.c')
-rw-r--r-- | gcc/haifa-sched.c | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/gcc/haifa-sched.c b/gcc/haifa-sched.c index db1d66f49b8..76282bd0ced 100644 --- a/gcc/haifa-sched.c +++ b/gcc/haifa-sched.c @@ -4019,32 +4019,6 @@ change_pattern (rtx insn, rtx new_pat) dfa_clear_single_insn_cache (insn); } -/* Return true if INSN can potentially be speculated with type DS. */ -bool -sched_insn_is_legitimate_for_speculation_p (const_rtx insn, ds_t ds) -{ - if (HAS_INTERNAL_DEP (insn)) - return false; - - if (!NONJUMP_INSN_P (insn)) - return false; - - if (SCHED_GROUP_P (insn)) - return false; - - if (IS_SPECULATION_CHECK_P (insn)) - return false; - - if (side_effects_p (PATTERN (insn))) - return false; - - if ((ds & BE_IN_SPEC) - && may_trap_p (PATTERN (insn))) - return false; - - return true; -} - /* -1 - can't speculate, 0 - for speculation with REQUEST mode it is OK to use current instruction pattern, |