[LLVMbugs] [Bug 11794] New: EarlyCSE stack overflow on long functions.

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Jan 18 13:07:57 PST 2012


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

             Bug #: 11794
           Summary: EarlyCSE stack overflow on long functions.
           Product: tools
           Version: trunk
          Platform: PC
        OS/Version: FreeBSD
            Status: NEW
          Severity: normal
          Priority: P
         Component: opt
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: lenny at colorado.edu
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


Created attachment 7900
  --> http://llvm.org/bugs/attachment.cgi?id=7900
Running this Python script will generate a file which when compiled with the
EarlyCSE optimizer enabled (-O2 will enable it) causes the stack to be blown.

Basically, the issue is that EarlyCSE::processNode() is recursive and with a
very large function, such as the machine generated one I have, it blows the
stack. 

The attached script generates a function which re-creates the problem. On my
64-bit FreeBSD 7.3 build machine I come across this issue with a function as
short as 5800 lines, possibly shorter. gcc 4.3 does not display the same issue.

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list