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


Ah, okay. So essentially it is done this way to maintain generality and 
architecture-independence of the code that translates syntax trees into 
RTL. This makes a lot more sense now. Thanks. :)

-Vadim

On Thu, 29 Apr 2004, Zack Weinberg wrote:

> 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]