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

            Bug ID: 50724
           Summary: Optimizer taking ~forever
           Product: clang
           Version: 12.0
          Hardware: Macintosh
                OS: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected]

Created attachment 24956
  --> https://bugs.llvm.org/attachment.cgi?id=24956&action=edit
Single source file

/tmp ยป clang++ --version
Apple clang version 12.0.5 (clang-1205.0.22.9)
Target: x86_64-apple-darwin20.5.0
Thread model: posix

'clang++' '-O0' -std=c++11 'gen.cpp' '-o' 'gen.cpp.out'  1.16s user 0.07s
system 98% cpu 1.241 total
'clang++' '-O1' -std=c++11 'gen.cpp' '-o' 'gen.cpp.out'  11.30s user 0.27s
system 99% cpu 11.579 total
'clang++' '-O2' -std=c++11 'gen.cpp' '-o' 'gen.cpp.out'  288.87s user 8.46s
system 99% cpu 4:57.36 total

The attached program takes a really long time to optimize; I think clang should
do better.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to