Richard Earnshaw wrote:

> I think it would be nicer if this could be done in a MI way by examining
> certain target properties.  For example, the generic framework might say
> something like: 'if there's more than N gp registers, enable opt_foo at
> -O2 or above'.

Yes, I agree; wherever that technique works, it would make sense.
Perhaps that can be made to handle all the cases; I'm not sure.

I'm certainly not trying to suggest that we run SPEC on every
architecture, and then make -O2 be the set of optimization options that
happens to do best there, however bizarre.

But, I would certainly be happy with better performance, even at the
cost of some mild inconsistency between optimizations running on
different CPUs.  Your example of turning off sched1 is exactly the sort
of thing that seems reasonable to me, although I agree that if it can be
disabled in a machine-independent way, by checking some property of the
back end, that would be superior.

-- 
Mark Mitchell
CodeSourcery
[EMAIL PROTECTED]
(650) 331-3385 x713

Reply via email to