Sun Studio Express 2006-06: interval code is unoptimised?

It appears that the interval code for Sun Studio Express 2006-06 is unoptimised. For example, check out prod/lib/v9b/libsunimath.a:ival_add.o:di_add_f().Oops.That slows down my interval code considerably!/lib
[236 byte] By [slashlib] at [2007-11-26 8:34:24]
# 1

> It appears that the interval code for Sun Studio

> Express 2006-06 is unoptimised. For example, check

> out

> prod/lib/v9b/libsunimath.a:ival_add.o:di_add_f().

> Oops.

> That slows down my interval code considerably!

Slows it down compared to what? I'm not sure what you're saying is wrong. It is true that the optimizer can't do much with interval code, but that's always been the case, so Studio Express 2006-06 shouldn't be any slower than previous versions.

Iain

igb at 2007-7-6 22:01:40 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 2

Slows down compared with previous versions of the compiler (e.g., SS-11).

A simple benchmark that does an interval sum using a do-loop will demonstrate it, about 70% slower.

What I'm talking about has nothing to do with what the compiler/optimiser does to my code; it has to do with the library code.

If you compare the compiled di_add_f in v9b/libsunimath.a from SS-E0606 with SS-11 you will see.

/lib

slashlib at 2007-7-6 22:01:40 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 3

This performance problem is due to a last minute bug fix that we made in Studio Express. In the production release of the compiler, we plan to fix the bug in a way that will not impact performance. So the production release should not suffer from this problem.

Please address any further questions to me at Rupert.Brauch@sun.com as I do not regularly read this forum.

-Rupert

RupertBrauch at 2007-7-6 22:01:40 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 4
I'd hoped to be able to fix this for Studio 12 FCS, but it looks like that is not going to happen. I'm now aiming to fix this in the first patch for Studio 12.For those who have access to bugster, the CR# is 6430112
RupertBrauch at 2007-7-6 22:01:40 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 5
I was able to fix this in Studio 12 FCS after all
RupertBrauch@suncom at 2007-7-6 22:01:40 > top of Java-index,Development Tools,Solaris and Linux Development Tools...