[LLVMbugs] [Bug 15021] New: LoopVectorizer does not vectorize reverse pointer induction variables.

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Jan 21 09:16:05 PST 2013


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

             Bug #: 15021
           Summary: LoopVectorizer does not vectorize reverse pointer
                    induction variables.
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Loop Optimizer
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: nrotem at apple.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


The LoopVectorizer does not vectorize the code below because it is a reverse
pointer induction variable. It should be pretty simple to implement.

void example1 (int *a, int n, int wsize) {
  int m;
  int *p = a;
            do {
                m = *--p;
                *p = (m >= wsize ? m-wsize : 0);
            } while (--n);
}

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list