Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: float to int (kinda OT)




On Oct 21, 2004, at 2:03 PM, Holger Bettag wrote:

My personal experience with Pentium 2 and Pentium 3 is that modest
unrolling (by two or sometimes by three) often helps, and does not hurt
Pentium 4. I noticed that Pentium 4 generally gains notably less from
manual tunig than other processors do. It's just not easy to keep these
monster pipelines fed from tiny register files.

The trace cache seems likely to pay off much better if it has to translate less code, and its reward seems likely to be greater the more times a loop goes around. 


I think also that when largish issue queues like G5 are used to do instruction reordering, the queues in effect do the unrolling for you, as long as you don't run out of issue queue slots and rename registers. The queues may do it better because there are many more renames than named registers. Unfortunately, if you unroll by hand but end up doing extra work to work around limited register availability, their ability to do that is lessened. The demands on queue length and rename availability become that much larger with each new instruction in the loop, in order to unroll the loop in the queues.  

Ian

_______________________________________________
Do not post admin requests to the list. They will be ignored.
PerfOptimization-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/perfoptimization-dev/email@hidden

This email sent to email@hidden
References: 
 >Graphics card tricks (From: "Edward K. Chew" <email@hidden>)
 >Re: Graphics card tricks (From: Holger Bettag <email@hidden>)
 >Re: Graphics card tricks (From: Niall Dalton <email@hidden>)
 >float to int (kinda OT) (From: Ando Sonenblick <email@hidden>)
 >Re: float to int (kinda OT) (From: Brendan Younger <email@hidden>)
 >Re: float to int (kinda OT) (From: Ian Ollmann <email@hidden>)
 >Re: float to int (kinda OT) (From: Holger Bettag <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.