[LLVMbugs] [Bug 19336] New: Delinearization fails when loop indexes are in reverse order

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Apr 4 00:37:22 PDT 2014


http://llvm.org/bugs/show_bug.cgi?id=19336

            Bug ID: 19336
           Summary: Delinearization fails when loop indexes are in reverse
                    order
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Loop Optimizer
          Assignee: unassignedbugs at nondot.org
          Reporter: tobias at grosser.es
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 12342
  --> http://llvm.org/bugs/attachment.cgi?id=12342&action=edit
Reduced test case

We can sucessfully delinearize this piece of code:

A[][dim_size];

for (i = 0; i < n; i++)_
  for (j = 0; j < n; j++)
    A[i][j]

AddRec: {{%A,+,(4 * %dim_size)}<%loop.i>,+,4}<%loop.j>
Base offset: %A
ArrayDecl[UnknownSize][%dim_size] with elements of 4 bytes.
ArrayRef[{0,+,1}<%loop.i>][{0,+,1}<%loop.j>]

but fail for:

A[][dim_size];

for (i = 0; i < n; i++)_
  for (j = 0; j < n; j++)
    A[j][i]

AddRec: {{%A,+,4}<%loop.i>,+,(4 * %dim_size)}<%loop.j>
Base offset: %A
ArrayDecl[UnknownSize][1] with elements of 4 bytes.
ArrayRef[{0,+,1}<%loop.i>][{0,+,%dim_size}<%loop.j>]

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140404/3ec98c9a/attachment.html>


More information about the llvm-bugs mailing list