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] Avoid induction variables in DO loops.


Oh, I've got a mistake. The test taken by me recently
is for mainline, not LNO branch.

My newest test shows that LNO branch can do data
dependence analysis for arrays with known bounds, but
not unknown bounds.

This may or may not be correct, it's hard to say.
Yes it is true that our data dependence testing is still in the process of being written.
We have ZIV test, SIV test, and a partial MIV test done.
As written below, it may not fall into the MIV test portion we have implemented yet.
I honestly don't remember.


It would be good to know what your goal is.
IE why you care whether it can do this data dependence analysis or not.
Are you trying to perform some specific optimization?

I mean, you are welcome to implement the rest of the miv test if you like (see tree-data-ref.c:analyze_miv_subscript for what is currently implemented, however, it helps avoid duplicate work if we know what your plans are, as there may already be people working on what you want to do.


subroutine array_ref (a, b, c, N)
  real a(N, N), b(N, N), c(N, N)
  do i = 1, N
    do j = 1, N
      c(j, i) = a(j, i) * b(j, i)
    enddo
  enddo
end



Canqun Yang
Creative Compiler Research Group.
National University of Defense Technology, China.



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