[LLVMbugs] [Bug 16520] New: dead store elimination missing store of existing value

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Jul 1 19:48:58 PDT 2013


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

            Bug ID: 16520
           Summary: dead store elimination missing store of existing value
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Scalar Optimizations
          Assignee: unassignedbugs at nondot.org
          Reporter: richard-llvm at metafoo.co.uk
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

void g(), h();
void f(bool b, bool &r) {
  r = true;
  if (b) {
    r = true;
    g();
  } else {
    h();
  }
}

opt -O3 fails to remove the second write to r.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20130702/35020a8a/attachment.html>


More information about the llvm-bugs mailing list