https://llvm.org/bugs/show_bug.cgi?id=30472

            Bug ID: 30472
           Summary: [LoopInterchange] Missed optimization with no
                    dependencies.
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: Loop Optimizer
          Assignee: unassignedb...@nondot.org
          Reporter: mcros...@codeaurora.org
                CC: llvm-bugs@lists.llvm.org
    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
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to