[LLVMbugs] [Bug 1310] NEW: doesn't kill dead stores in an aggregate

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Wed Apr 4 18:36:41 PDT 2007


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

           Summary: doesn't kill dead stores in an aggregate
           Product: libraries
           Version: trunk
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Scalar Optimizations
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: nicholas at mxc.ca


This program is a return undef:

int main(void) {
  int foo[12][8];
  foo[0][0] = 1;
  for (int i = 0; i < 10; ++i) {
    foo[i][5] = i;
  }
  foo[0][1] = 2;
  foo[1][1] = 3;
  foo[2][1] = 4;
  foo[3][1] = 5;

  return foo[4][4];
}

but LLVM has unrolled the loop and otherwise left in all of the stores and the
sole load.



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