http://llvm.org/bugs/show_bug.cgi?id=21556
Bug ID: 21556
Summary: Comparison between new pointer and stack address not
optimized away.
Product: libraries
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: Scalar Optimizations
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
The following code compiles to code with a conditional branch which should be
possible to optimize away.
void p()
{
int *mData;
int mStackData[10];
mData = new int[12];
if (mData != mStackData) {
delete[] mData;
}
}
--
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