[llvm-bugs] [Bug 26013] New: Slow compilation with -O2 vs -O1 (~80sec vs ~2sec)

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Jan 4 10:00:44 PST 2016


https://llvm.org/bugs/show_bug.cgi?id=26013

            Bug ID: 26013
           Summary: Slow compilation with -O2 vs -O1 (~80sec vs ~2sec)
           Product: clang
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: jascha at jawset.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

Created attachment 15553
  --> https://llvm.org/bugs/attachment.cgi?id=15553&action=edit
preprocessed source to test slow compilation

The attached file is a pre-processed version of http://glew.sourceforge.net/

Compile with:
clang -c -O2 slow_compilation_test.c

The function glewContextInit (line 15278) has a few hundred assignments, many
of which are conditional. The compile time scales with the number of these
assignments (tested by removing some of them from the end of the function
body).
It's thus difficult to extract an isolated test case.

-- 
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/20160104/629ad14b/attachment-0001.html>


More information about the llvm-bugs mailing list