https://bugs.llvm.org/show_bug.cgi?id=44359
Bug ID: 44359
Summary: Slow 'for' loop unrolling
Product: clang
Version: 9.0
Hardware: PC
OS: Linux
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 22959
--> https://bugs.llvm.org/attachment.cgi?id=22959&action=edit
Adobe_C++Benchmarks
Compile and run 'loop unroll test' in Adobe C++ benchmark
(https://stlab.adobe.com/performance/). We find slowdown in clang-7,8,9(docker)
when adding '-O3':
╔══════════════════════════════════════╦═════╦═════╦═════╦══════════╗
║ Total absolute execution time (sec.) ║ O1 ║ O2 ║ O3 ║ comments ║
╠════════════════════════════╦═════════╬═════╬═════╬═════╬══════════╣
║ ║ gcc-8 ║ 259 ║ 167 ║ 149 ║ ok ║
║ ╠═════════╬═════╬═════╬═════╬══════════╣
║ ║ clang-6 ║ 326 ║ 206 ║ 181 ║ ok? ║
║ ╠═════════╬═════╬═════╬═════╬══════════╣
║ int32_t 'for' ║ clang-7 ║ 249 ║ 171 ║ 182 ║ SLOW ║
║ loop unrolling ╠═════════╬═════╬═════╬═════╬══════════╣
║ ║ clang-8 ║ 247 ║ 170 ║ 183 ║ SLOW ║
║ ╠═════════╬═════╬═════╬═════╬══════════╣
║ ║ clang-9 ║ 248 ║ 170 ║ 183 ║ SLOW ║
╚════════════════════════════╩═════════╩═════╩═════╩═════╩══════════╝
╔══════════════════════════════════════╦═════╦═════╦═════╦══════════╗
║ Total absolute execution time (sec.) ║ O1 ║ O2 ║ O3 ║ comments ║
╠═══════════════════════╦══════════════╬═════╬═════╬═════╬══════════╣
║ ║ clang-6 ║ 347 ║ 206 ║ 181 ║ ok ║
║ ╠══════════════╬═════╬═════╬═════╬══════════╣
║ int32_t 'while' ║ clang-7 ║ 248 ║ 167 ║ 164 ║ ok ║
║ loop unrolling ╠══════════════╬═════╬═════╬═════╬══════════╣
║ ║ clang-8 ║ 249 ║ 167 ║ 165 ║ ok ║
║ ╠══════════════╬═════╬═════╬═════╬══════════╣
║ ║ clang-9 ║ 248 ║ 167 ║ 165 ║ ok ║
╚═══════════════════════╩══════════════╩═════╩═════╩═════╩══════════╝
The this performance issue do not occur in 'while' loop unrolling test or gcc
either.
Thank you.
--
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