[LLVMbugs] [Bug 16451] New: Missed optimization: obviously dead STOREs left in bitcode

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Jun 25 13:54:30 PDT 2013


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

            Bug ID: 16451
           Summary: Missed optimization: obviously dead STOREs left in
                    bitcode
           Product: libraries
           Version: 3.2
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Scalar Optimizations
          Assignee: unassignedbugs at nondot.org
          Reporter: David.Monniaux at imag.fr
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Consider the following:

int valeur;
volatile int bidule;

void toto() {
  if (bidule) {
    valeur = 65;
  } else {
    valeur = 33;
  }
  if (bidule) {
    valeur++;
  } else {
    valeur--;
  }
}

This code could be compiled with a single STORE instruction at the end, yet
gets compiled with two STOREs, the first of which is dead.

-- 
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/20130625/af69f06c/attachment.html>


More information about the llvm-bugs mailing list