query regarding ivopts.
Ramana Radhakrishnan
ramana.radhakrishnan@celunite.com
Wed Jul 19 17:35:00 GMT 2006
Hi Zdenek,
I can't seem to reproduce this on 4.1.x with any other port. Maybe I need a sync
up with the latest svn of 4.1.x . I'll try looking at 4.2 head also to spot
differences if any.
Thanks for your time
cheers
Ramana
Ramana Radhakrishnan
GNU Tools
Celunite Inc
On Wed Jul 19 8:09 , Zdenek Dvorak sent:
>Hello,
>
>> I am upgrading a port from 3.4.5 to 4.1.x .In course of this I see some
>> regressions in terms of performance in memcpy . I have narrowed down the test
>> case to the function below.
>>
>> ivopts generates ivtmps for each of the address calculations as shown in the
>> attached log instead of coalescing them into accesses off a single base .
>>
>> I have constant offset based indexed addressing available. 3.4.x works just fine
>> and transforms these into accesses off a single base.
>>
>> >From the little I understand of the way ivopts works- I assume this has to do
>> with costs from my backend. I tweaked TARGET_ADDRESS_COST to return 0 always as
>> well as specifically for POST_INC, POST_DEC and friends , but this did not help .
>>
>> Any suggestions would be great ! Thanks for your time .
>
>this is a bug in ivopts, the costs have nothing to do with it. It
>appears to be fixed in 4.2 (I cannot reproduce it with your example
>there).
>
>Zdenek
>
More information about the Gcc
mailing list