On Thu, Jun 4, 2009 at 9:24 PM, Shobaki, Ghassan
> I agree with Zdenek that the first heuristic is imprecise and needs
> improvement. At least it has to distinguish between simple integer arithmetic
> ops and expensive FP ops. I am planning on doing this very soon. As I
> explained in the previous email, that will require computing an
> instruction-by-instruction time estimate using the estimates that GCC already
> computes but adapting them to properly account for the costs of cache missing
> memory ops.
GCC has both size and time estimates for code - I guess this is where you use
the size estimate but really ment the time estimate, no?