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: [patch, fortran] PR32382 missed optimization in internal read


Jerry DeLisle wrote:
Hi Folks,

Some more quiet time allowed me to see this simple solution. This modifies the DO LOOP code for implied loops in I/O statements (READ and WRITE) by adding a simple exit condition at the end of the loop block. It only comes into play while translating I/O statements.

Regression tested on x86_64. No need for new test case in testsuite. I have attached the case from the PR for convenience.

OK for trunk?


Of course, after I submit the patch I see it only works if the implied do is on the first variable in the IO list. I am updating the patch to work more generally.


Jerry


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