[llvm] [NFC][AlwaysInliner] Reduce AlwaysInliner memory consumption. (PR #96958)
Arthur Eubanks via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 27 16:18:39 PDT 2024
================
@@ -38,6 +38,7 @@ bool AlwaysInlineImpl(
SmallSetVector<CallBase *, 16> Calls;
bool Changed = false;
SmallVector<Function *, 16> InlinedFunctions;
+ SmallVector<Function *, 16> WorkList;
for (Function &F : M) {
----------------
aeubanks wrote:
I think we can do `for (Function &F: make_early_inc_range(M))` to enable deleting in this loop
https://github.com/llvm/llvm-project/pull/96958
More information about the llvm-commits
mailing list