[LLVMbugs] [Bug 8586] New: Missing PRE

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Nov 10 17:40:48 PST 2010


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

           Summary: Missing PRE
           Product: new-bugs
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Keywords: quality-of-implementation
          Severity: normal
          Priority: P
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: xinliangli at gmail.com
                CC: llvmbugs at cs.uiuc.edu, xinliangli at gmail.com


int a[100];
int foo(int x, int* y, int z)
{ 
  int m; 
  if (x)
  {
//     *y = z;
     a[x]  = z;
  }
  m = *y; 
  return m + a[x];      // <-- a[x] here is not PREed by LLVM.

}


David

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