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: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]
    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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to