[llvm-dev] Memory Requirements For Compiling PassBuilder.cpp

David Blaikie via llvm-dev llvm-dev at lists.llvm.org
Wed Sep 4 14:17:10 PDT 2019


Probably the simple thing that might help would be to split up the file a
bit - especially the functions that include PassRegistry.def as part of
their implementation. I'm guessing the parse.*Pass functions are the worst
parts and having each of those in a separate file is probably helpful.

Other than that - actually changing the constructs to use less memory
overall, I'm not sure.

On Tue, Sep 3, 2019 at 7:12 PM Stefan Pintilie via llvm-dev <
llvm-dev at lists.llvm.org> wrote:

> Hi Everyone,
>
> Recently I have realised that compiling the file PassBuilder.cpp takes a
> significant amount of memory. I have seen anywhere between 700 MB to over
> 1GB depending on which build compiler is used. This memory consumption
> recently caused a couple of build bots that run on a smaller machine to run
> out of memory and fail to build.
>
> I have no intention of changing any of the functionality of this file but
> I was wondering if anyone could suggest a way to reduce its complexity (and
> hopefully memory consumption).
> Any ideas of how I could try to go about this? Would it be possible to
> refactor parts into another file perhaps?
>
> Thank you in advance,
> Stefan
>
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20190904/646be85c/attachment.html>


More information about the llvm-dev mailing list