Kill CONST_DOUBLE_CHAIN

Dale Johannesen dalej@apple.com
Wed Apr 24 14:20:00 GMT 2002


On Wednesday, April 24, 2002, at 01:49 PM, Zack Weinberg wrote:

> On Wed, Apr 24, 2002 at 11:50:50AM -0700, Stan Shebs wrote:
>>
>> Not sharing doubles makes code larger, and if you have good
>> indexing, it makes it slower too.  My personal experience with
>> numerical code is that the same constants do recur repeatedly
>> within a function, especially if it has been manually unrolled
>> and otherwise tuned.
>
> You misunderstand.  GCC still shares these constants in the constant
> pool it emits into assembly.  It just doesn't bother sharing them in
> its own memory.

Just to be sure:  Darwin (and probably others) doesn't use a constant
pool; constants are referenced individually.  Identical constants
are still going to be shared in this case, right?



More information about the Gcc-patches mailing list