1 Samsung Open Source Group
Building Clang/LLVM efficiently
Tilmann Scheller LLVM Compiler Engineer t.scheller@samsung.com Samsung Open Source Group Samsung Research UK EuroLLVM 2015 London, United Kingdom, April 13 – 14, 2015
Building Clang/LLVM efficiently Tilmann Scheller LLVM Compiler - - PowerPoint PPT Presentation
Building Clang/LLVM efficiently Tilmann Scheller LLVM Compiler Engineer t.scheller@samsung.com Samsung Open Source Group Samsung Research UK EuroLLVM 2015 London, United Kingdom, April 13 14, 2015 Samsung Open Source Group 1 Overview
1 Samsung Open Source Group
Tilmann Scheller LLVM Compiler Engineer t.scheller@samsung.com Samsung Open Source Group Samsung Research UK EuroLLVM 2015 London, United Kingdom, April 13 – 14, 2015
2 Samsung Open Source Group
3 Samsung Open Source Group
4 Samsung Open Source Group
5 Samsung Open Source Group
6 Samsung Open Source Group
7 Samsung Open Source Group
8 Samsung Open Source Group
Release build Debug build 100 200 300 400 500 600 700 800 538 509 726 755 Clang GCC 4.9.2
seconds
1.48x faster 1.34x faster
9 Samsung Open Source Group
Release build Debug build 100 200 300 400 500 600 700 800 583 591 726 755 X86 backend only All backends
seconds
1.27x faster 1.24x faster
10 Samsung Open Source Group
Release build Debug build 100 200 300 400 500 600 700 800 900 1000 726 755 731 873 746 GNU gold + split DWARF GNU gold GNU ld
seconds
1.17x faster
11 Samsung Open Source Group
Clang -O3 GCC -O3 Clang LT O GCC LT O GCC PGO GCC LT O+PGO 400 420 440 460 480 500 520 540 560 537 538 522 547 462 482
Release
seconds
Clang -O3 GCC -O3 Clang LT O GCC LT O GCC PGO GCC LT O+PGO 400 420 440 460 480 500 520 510 509 498 512 450 467
Debug
seconds
PGO 1.16x faster PGO 1.13x faster
12 Samsung Open Source Group
(ARMISelLowering.cpp)
Build time after edit 5 10 15 20 25 30 5 27 Shared build Static build
seconds
5.4x faster
13 Samsung Open Source Group
14 Samsung Open Source Group
15 Samsung Open Source Group