[llvm-bugs] [Bug 50724] New: Optimizer taking ~forever
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Jun 15 12:55:19 PDT 2021
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: unassignedclangbugs at nondot.org
Reporter: dave at boostpro.com
CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org,
neeilans at live.com, richard-llvm at metafoo.co.uk
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210615/6154a2e5/attachment.html>
More information about the llvm-bugs
mailing list