[all-commits] [llvm/llvm-project] 12c115: [NFC][AlwaysInliner] Reduce AlwaysInliner memory c...
Daniil Fukalov via All-commits
all-commits at lists.llvm.org
Tue Jul 2 01:44:11 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 12c1156207e8c0d63701487f210ce90c4b7da938
https://github.com/llvm/llvm-project/commit/12c1156207e8c0d63701487f210ce90c4b7da938
Author: Daniil Fukalov <1671137+dfukalov at users.noreply.github.com>
Date: 2024-07-02 (Tue, 02 Jul 2024)
Changed paths:
M llvm/lib/Transforms/IPO/AlwaysInliner.cpp
M llvm/test/Transforms/Inline/always-inline-phase-ordering.ll
Log Message:
-----------
[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.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list