Commit 577d6328 by Richard Earnshaw Committed by Richard Earnshaw

arm.c (arm_override_options): Revert change of arm_constant_limit when optimizing for size.

* arm.c (arm_override_options): Revert change of arm_constant_limit
when optimizing for size.

From-SVN: r73082
parent 08b9183d
2003-10-30 Richard Earnshaw <rearnsha@arm.com>
* arm.c (arm_override_options): Revert change of arm_constant_limit
when optimizing for size.
2003-10-29 Richard Henderson <rth@redhat.com> 2003-10-29 Richard Henderson <rth@redhat.com>
* fold-const.c (fold_single_bit_test): Convert the input to the * fold-const.c (fold_single_bit_test): Convert the input to the
......
...@@ -847,11 +847,11 @@ arm_override_options (void) ...@@ -847,11 +847,11 @@ arm_override_options (void)
if (optimize_size) if (optimize_size)
{ {
/* If optimizing for space, we let the compiler synthesize constants /* There's some dispute as to whether this should be 1 or 2. However,
with up to 2 insns, which uses the same space as a load from memory. experiments seem to show that in pathological cases a setting of
This gives the opportunity to take even less space when different 1 degrades less severly than a setting of 2. This could change if
offsets can be factorized into multiple pre-indexed loads or stores. */ other parts of the compiler change their behavior. */
arm_constant_limit = 2; arm_constant_limit = 1;
/* If optimizing for size, bump the number of instructions that we /* If optimizing for size, bump the number of instructions that we
are prepared to conditionally execute (even on a StrongARM). */ are prepared to conditionally execute (even on a StrongARM). */
......
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