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: [email protected]
Reporter: [email protected]
CC: [email protected]
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs