diff --git a/gcc/haifa-sched.c b/gcc/haifa-sched.c index ad2450b..c790830 100644 --- a/gcc/haifa-sched.c +++ b/gcc/haifa-sched.c @@ -5691,6 +5691,10 @@ autopref_multipass_dfa_lookahead_guard (rtx_insn *insn1, int ready_index) { int r = 0; + /* Autoprefetcher modeling is not supported by selective scheduler. */ + if (sel_sched_p ()) + return 0; + if (PARAM_VALUE (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH) <= 0) return 0;