This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Missing if optimization


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]