diff options
author | Jan Hubicka <hubicka@ucw.cz> | 2017-10-05 18:29:42 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2017-10-05 16:29:42 +0000 |
commit | 10c98117e8f1dde3b61e3e0d358376b44b1e4b61 (patch) | |
tree | 73e5dcd6cac9a59b4409db519e06b4e0d6fe07a6 | |
parent | 592fbfb5fb376972c21d88ac57b0a4a38018e79f (diff) | |
download | gcc-10c98117e8f1dde3b61e3e0d358376b44b1e4b61.zip gcc-10c98117e8f1dde3b61e3e0d358376b44b1e4b61.tar.gz gcc-10c98117e8f1dde3b61e3e0d358376b44b1e4b61.tar.bz2 |
i386.c (ia32_multipass_dfa_lookahead): Default to issue rate for post-reload scheduling.
* i386.c (ia32_multipass_dfa_lookahead): Default to issue rate
for post-reload scheduling.
From-SVN: r253453
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/i386/i386.c | 45 |
2 files changed, 12 insertions, 38 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 777340c..009a6eb 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2017-10-05 Jan Hubicka <hubicka@ucw.cz> + + * i386.c (ia32_multipass_dfa_lookahead): Default to issue rate + for post-reload scheduling. + 2017-10-05 Tamar Christina <tamar.christina@arm.com> * doc/sourcebuild.texi (vect_sizes_16B_8B, vect_sizes_32B_16B): New. diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index 01115e9..e90cbfb 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -30761,44 +30761,13 @@ ix86_adjust_cost (rtx_insn *insn, int dep_type, rtx_insn *dep_insn, int cost, static int ia32_multipass_dfa_lookahead (void) { - switch (ix86_tune) - { - case PROCESSOR_PENTIUM: - case PROCESSOR_LAKEMONT: - return 2; - - case PROCESSOR_PENTIUMPRO: - case PROCESSOR_K6: - return 1; - - case PROCESSOR_BDVER1: - case PROCESSOR_BDVER2: - case PROCESSOR_BDVER3: - case PROCESSOR_BDVER4: - /* We use lookahead value 4 for BD both before and after reload - schedules. Plan is to have value 8 included for O3. */ - return 4; - - case PROCESSOR_CORE2: - case PROCESSOR_NEHALEM: - case PROCESSOR_SANDYBRIDGE: - case PROCESSOR_HASWELL: - case PROCESSOR_BONNELL: - case PROCESSOR_SILVERMONT: - case PROCESSOR_KNL: - case PROCESSOR_KNM: - case PROCESSOR_INTEL: - /* Generally, we want haifa-sched:max_issue() to look ahead as far - as many instructions can be executed on a cycle, i.e., - issue_rate. I wonder why tuning for many CPUs does not do this. */ - if (reload_completed) - return ix86_issue_rate (); - /* Don't use lookahead for pre-reload schedule to save compile time. */ - return 0; - - default: - return 0; - } + /* Generally, we want haifa-sched:max_issue() to look ahead as far + as many instructions can be executed on a cycle, i.e., + issue_rate. */ + if (reload_completed) + return ix86_issue_rate (); + /* Don't use lookahead for pre-reload schedule to save compile time. */ + return 0; } /* Return true if target platform supports macro-fusion. */ |