Commit 6fc8a30a by Chris Demetriou Committed by Chris Demetriou

mips.c (override_options): Default to no generation of branch-likely operations when...

2004-05-04  Chris Demetriou  <cgd@broadcom.com>

        * config/mips/mips.c (override_options): Default to no
        generation of branch-likely operations when tuning for
        CPUs where they tend to have a negative performance impact
        (e.g., SB-1).

From-SVN: r81494
parent 2225a42a
2004-05-04 Chris Demetriou <cgd@broadcom.com>
* config/mips/mips.c (override_options): Default to no
generation of branch-likely operations when tuning for
CPUs where they tend to have a negative performance impact
(e.g., SB-1).
2004-05-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> 2004-05-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* expr.c (store_constructor_field): Don't call store_constructor * expr.c (store_constructor_field): Don't call store_constructor
......
...@@ -4681,9 +4681,10 @@ override_options (void) ...@@ -4681,9 +4681,10 @@ override_options (void)
architecture. architecture.
By default, we enable use of Branch Likely instructions on By default, we enable use of Branch Likely instructions on
all architectures which support them except for MIPS32 and MIPS64 all architectures which support them with the following
(i.e., the generic MIPS32 and MIPS64 ISAs, and processors which exceptions: when creating MIPS32 or MIPS64 code, and when
implement them). tuning for architectures where their use tends to hurt
performance.
The MIPS32 and MIPS64 architecture specifications say "Software The MIPS32 and MIPS64 architecture specifications say "Software
is strongly encouraged to avoid use of Branch Likely is strongly encouraged to avoid use of Branch Likely
...@@ -4691,7 +4692,9 @@ override_options (void) ...@@ -4691,7 +4692,9 @@ override_options (void)
of the [MIPS32 and MIPS64] architecture." Therefore, we do not of the [MIPS32 and MIPS64] architecture." Therefore, we do not
issue those instructions unless instructed to do so by issue those instructions unless instructed to do so by
-mbranch-likely. */ -mbranch-likely. */
if (ISA_HAS_BRANCHLIKELY && !(ISA_MIPS32 || ISA_MIPS32R2 || ISA_MIPS64)) if (ISA_HAS_BRANCHLIKELY
&& !(ISA_MIPS32 || ISA_MIPS32R2 || ISA_MIPS64)
&& !(TUNE_SB1))
target_flags |= MASK_BRANCHLIKELY; target_flags |= MASK_BRANCHLIKELY;
else else
target_flags &= ~MASK_BRANCHLIKELY; target_flags &= ~MASK_BRANCHLIKELY;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment