diff options
author | Arthur Eubanks <aeubanks@google.com> | 2023-05-03 09:56:22 -0700 |
---|---|---|
committer | Arthur Eubanks <aeubanks@google.com> | 2023-05-03 11:29:15 -0700 |
commit | 8b8466fd31e5a194fd8ba7a73a0f23d32f164318 (patch) | |
tree | f698299b270f9f26d566d38bac95ebd0b0459b27 /clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp | |
parent | 7e6a15892a16b95ead395956a910d020772fdd16 (diff) | |
download | llvm-8b8466fd31e5a194fd8ba7a73a0f23d32f164318.zip llvm-8b8466fd31e5a194fd8ba7a73a0f23d32f164318.tar.gz llvm-8b8466fd31e5a194fd8ba7a73a0f23d32f164318.tar.bz2 |
[ArgumentPromotion] Bail if any callers are minsize
Argument promotion mostly works on functions with more than one caller (otherwise the function would be inlined or is dead), so there's a good chance that performing this increases code size since we introduce loads at every call site. If any caller is marked minsize, bail.
We could compare the number of loads/stores removed from the function with the number of loads introduced in callers, but that's TODO.
Reviewed By: nikic
Differential Revision: https://reviews.llvm.org/D149768
Diffstat (limited to 'clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp')
0 files changed, 0 insertions, 0 deletions