Optimising logical expressions
Terry Frankcombe
terry@chem.gu.se
Wed Jun 20 15:27:00 GMT 2007
With gfortran/gcc, is there a significant difference in the code the
optimiser produces from:
if (A.and.B) ...
and
if (A) then
if (B) ...
endif
?
(No, I'm not trying to avoid an invalid B. I'm curious about the case
where B is expensive.)
Ciao
Terry
--
Dr Terry Frankcombe
Physical Chemistry, Department of Chemistry
Göteborgs Universitet
SE-412 96 Göteborg Sweden
Ph: +46 76 224 0887 Skype: terry.frankcombe
<terry@chem.gu.se>
More information about the Fortran
mailing list