Re: [gfortran] Use MAX/MIN_EXPR to convert intrinsic min/max

Canqun Yang canqun@nudt.edu.cn
Sat Jan 31 11:08:00 GMT 2004


ÒýÑÔ Steven Bosscher <stevenb@suse.de>:

> On Friday 30 January 2004 03:21, Canqun Yang wrote:
> > Hi, all
> >
> > Use MAX_EXPR or MIN_EXPR to convert the intrinsics
> > min/max and minval/maxval, compared with former
> > implementation which use if-then-else constructs, 
seems
> > more straightforward, it will avoid the overhead for
> > GCC backend to do if-conversion.
>
> I think MIN_EXPR and MAX_EXPR are non-GIMPLE, so this 
patch
> _should_ not make a difference on the generated 
code.  Have
> you checked that it does?
>
> Gr.
> Steven
>
> 
Oh, you're right. MIN_EXPR and MAX_EXPR are non-GIMPLE.
gimplify.c will reduce MIN_EXPR and MAX_EXPR to 
COND_EXPR.

Canqun Yang



More information about the Gcc-patches mailing list