x86 code generation question
Zack Weinberg
zack@codesourcery.com
Fri Apr 30 01:54:00 GMT 2004
Vadim Lobanov <vadim@cs.washington.edu> writes:
...
> Thus, when we compile with no optimizations, and it has the conditional
> move available, why does gcc choose to instead generate assembly with a
> jump instead of conditional move?
Because you compiled without optimization. Turning branches into
conditional moves is implemented strictly as an optimization. The
code that translates from abstract syntax trees to RTL doesn't know
anything about them.
zw
More information about the Gcc
mailing list