[LLVMbugs] [Bug 21556] New: Comparison between new pointer and stack address not optimized away.

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Nov 12 20:53:05 PST 2014


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: unassignedbugs at nondot.org
          Reporter: jmuizelaar at mozilla.com
                CC: llvmbugs at cs.uiuc.edu
    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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20141113/638302ac/attachment.html>


More information about the llvm-bugs mailing list