[llvm-dev] How to make LLVM go faster?

Friedman, Eli via llvm-dev llvm-dev at lists.llvm.org
Tue Sep 11 18:01:32 PDT 2018


On 9/11/2018 5:48 PM, Andrew Kelley via llvm-dev wrote:
> Here is some timing information from running the Zig standard library 
> tests:
>
> $ ./zig test ../std/index.zig --enable-timing-info
>                 Name       Start         End Duration     Percent
>           Initialize      0.0000      0.0010 0.0010      0.0001
>    Semantic Analysis      0.0010      0.9968 0.9958      0.1192
>      Code Generation      0.9968      1.4000 0.4032      0.0483
>     LLVM Emit Output      1.4000      8.1759 6.7760      0.8112
>   Build Dependencies      8.1759      8.3341 0.1581      0.0189
>            LLVM Link      8.3341      8.3530 0.0189      0.0023
>                Total      0.0000      8.3530 8.3530      1.0000
>
> 81% of the time was spent waiting for LLVM to turn a Module into an 
> object file. This is with optimizations off, FastISel, no module 
> verification, etc.
>
> How can I speed this up? Any tips or things to look into?

First step is probably setting TimePassesIsEnabled to true and looking 
at the output.  It's hard to say where the time is going without any 
numbers.

-Eli

-- 
Employee of Qualcomm Innovation Center, Inc.
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20180911/37533d23/attachment.html>


More information about the llvm-dev mailing list