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: x86 code generation question


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


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