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: unassignedclangb...@nondot.org
          Reporter: jas...@jawset.com
                CC: llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to