This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH, sched] Cleanup and improve multipass_dfa_lookahead_guard
- From: Andreas Schwab <schwab at linux-m68k dot org>
- To: Maxim Kuvyrkov <maxim dot kuvyrkov at linaro dot org>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>, Vladimir Makarov <vmakarov at redhat dot com>, Jim Wilson <jimwilso at cisco dot com>, "David Edelsohn \(dje dot gcc\ at gmail dot com\)" <dje dot gcc at gmail dot com>
- Date: Mon, 02 Jun 2014 09:54:45 +0200
- Subject: Re: [PATCH, sched] Cleanup and improve multipass_dfa_lookahead_guard
- Authentication-results: sourceware.org; auth=none
- References: <FECDDDDD-CB42-4560-B14B-27930564368C at linaro dot org> <m2fvjpdlhx dot fsf at linux-m68k dot org>
Regtested on ia64-suse-linux and installed as obvious.
Andreas.
* config/ia64/ia64.c
(ia64_first_cycle_multipass_dfa_lookahead_guard): Check
pending_data_specs first.
diff --git a/gcc/config/ia64/ia64.c b/gcc/config/ia64/ia64.c
index 118e5bf..4c5390b 100644
--- a/gcc/config/ia64/ia64.c
+++ b/gcc/config/ia64/ia64.c
@@ -7536,7 +7536,7 @@ ia64_first_cycle_multipass_dfa_lookahead_guard (rtx insn, int ready_index)
/* Size of ALAT is 32. As far as we perform conservative
data speculation, we keep ALAT half-empty. */
- if ((TODO_SPEC (insn) & BEGIN_DATA) && pending_data_specs >= 16)
+ if (pending_data_specs >= 16 && (TODO_SPEC (insn) & BEGIN_DATA))
return ready_index == 0 ? -1 : 1;
if (ready_index == 0)
--
2.0.0
--
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."