Bug ID: 30472
           Summary: [LoopInterchange] Missed optimization with no
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: Loop Optimizer
    Classification: Unclassified

If I'm not mistaken, we should be able to interchange the below loop, but we
currently don't.

unsigned no_deps_interchange(unsigned **Arr, unsigned k) {
  unsigned sum = 0;
  for (int i = 0; i < 1024; ++i)
    for(int j = 0; j < 1024; ++j)
      sum += Arr[j][i] + k;
  return sum;

The first issue is that we bail from loop interchange if we don't find any
dependencies (i.e., DepMatrix.size() == 0).

You are receiving this mail because:
You are on the CC list for the bug.
llvm-bugs mailing list

Reply via email to