This is the mail archive of the gcc-patches@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: [gfortran,patch] Use short-circuiting IF and AND expressions in gfortran


On 3/4/07, FX Coudert <fxcoudert@gmail.com> wrote:
Hi all,
I'm not sure whether this can really help the middle-end and
optimizers, and couldn't measure any performance gain on some
generated executables, but I think it's worth doing nonetheless.

I doubt it will middle-end as most of time (at least on x86), the short-circuiting ones are converted back to the non short-circuiting ones if there is no side effects on both sides. So really you might end up slowing down the compiler :).

-- Pinski


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