This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: x86 code generation question
- From: Zack Weinberg <zack at codesourcery dot com>
- To: Vadim Lobanov <vadim at cs dot washington dot edu>
- Cc: Paul Koning <pkoning at equallogic dot com>, gcc at gcc dot gnu dot org
- Date: Thu, 29 Apr 2004 16:20:25 -0700
- Subject: Re: x86 code generation question
- References: <20040429143407.C32478-100000@attu1.cs.washington.edu>
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