Missing if optimization
James E Wilson
wilson@specifixinc.com
Thu Sep 9 22:15:00 GMT 2004
Uros Bizjak wrote:
> The if optimization, which produces quite optimized code for integer
> case is missing for floatin-point compares.
This is very target dependent, and you didn't mention the target. From
the assembly code, it appears to be x86.
Some targets have comparisons that can be used to optimize this
testcase. Some don't.
For those that do, whether it gets optimized depends on how the backend
represents compares, which is done differently for different targets.
As for the optimization itself, there should be no problem there, as has
already been pointed out we get this right for powerpc.
You might consider filing a bug report for the missed optimization if
you haven't already.
--
Jim Wilson, GNU Tools Support, http://www.SpecifixInc.com
More information about the Gcc
mailing list