aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/InitPreprocessor.cpp
diff options
context:
space:
mode:
authorDaniil Fukalov <1671137+dfukalov@users.noreply.github.com>2024-07-02 10:43:49 +0200
committerGitHub <noreply@github.com>2024-07-02 10:43:49 +0200
commit12c1156207e8c0d63701487f210ce90c4b7da938 (patch)
treeff716eebe0e60f692480a53cabf24f1883b562f8 /clang/lib/Frontend/InitPreprocessor.cpp
parentb558ac0eef57a3737b1e27844115fa91e0b32582 (diff)
downloadllvm-12c1156207e8c0d63701487f210ce90c4b7da938.zip
llvm-12c1156207e8c0d63701487f210ce90c4b7da938.tar.gz
llvm-12c1156207e8c0d63701487f210ce90c4b7da938.tar.bz2
[NFC][AlwaysInliner] Reduce AlwaysInliner memory consumption. (#96958)
Refactored AlwaysInliner to remove some of inlined functions earlier. Before the change AlwaysInliner walked through all functions in the module and inlined them into calls where it is appropriate. Removing of the dead inlined functions was performed only after all of inlining. For the test case from the issue [59126](https://github.com/llvm/llvm-project/issues/59126) compiler consumes all of the memory on 64GB machine, so is killed. The change checks if just inlined function can be removed from the module and removes it.
Diffstat (limited to 'clang/lib/Frontend/InitPreprocessor.cpp')
0 files changed, 0 insertions, 0 deletions