[LLVMbugs] [Bug 1179] NEW: -indvars pass fails to replace exit value of loop when profitable

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Mon Feb 5 09:41:22 PST 2007


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

           Summary: -indvars pass fails to replace exit value of loop when
                    profitable
           Product: libraries
           Version: trunk
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Loop Optimizer
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: sabre at nondot.org


The -indvars pass is not computing the exit value of j in either of these cases:

int ltst(int x) {
int i, j;
j=0;
for(i=0; i<x; i++)j++;
return(j);
}

int ltst(int x) {
int i = 0, j = 0
do {
  j++, i++;
} while (i < x);
return(j);
}



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.



More information about the llvm-bugs mailing list