This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [gfortran] Use MAX/MIN_EXPR to convert intrinsic min/max
- From: Steven Bosscher <stevenb at suse dot de>
- To: Canqun Yang <canqun at nudt dot edu dot cn>, gcc-patches at gcc dot gnu dot org,fortran at gcc dot gnu dot org
- Date: Fri, 30 Jan 2004 10:30:24 +0100
- Subject: Re: [gfortran] Use MAX/MIN_EXPR to convert intrinsic min/max
- Organization: SUSE Labs
- References: <20040130022123.A6D2B5BDBD@ds20.nudt.edu.cn>
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