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

             Bug #: 14753
           Summary: Should recognize memset loop with a global induction
                    variable
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Scalar Optimizations
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]
    Classification: Unclassified


Currently this loop is not rewritten into a memset:

int gi;

void foo2(int n, float *a) {
  for(gi = 0; gi < n; gi++)
    a[gi] = 0;
}

It should be safe to do so since float *a and int gi may not alias.

-- 
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