This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran 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: [fortran patch] Don't use TREE_LISTs for storing arguments to intrinsic functions


Do you happen to have a testcase that highlighted this problem?

Not that I know of. I think it was generating code that is valid, but inefficient. Instead of translating MAX(A,B) into
if (A > B)
MAX = A;
else
MAX = B;
your patch was generating
if (A > A)
MAX = A;
else
MAX = A;
if (B > MAX)
MAX = B;


This yields the right result, but is inefficient. Thus, I don't have a testcase.

FX


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