diff options
author | Alex MacLean <amaclean@nvidia.com> | 2024-03-27 16:49:59 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-27 16:49:59 -0700 |
commit | e318613418e08e20d3b9e139a1a3ef0208db4844 (patch) | |
tree | 1b612070b0881b75346db10d25aa981e00f2fba1 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 19185d5a72565fce34521cb59d6c87232a86e0d4 (diff) | |
download | llvm-e318613418e08e20d3b9e139a1a3ef0208db4844.zip llvm-e318613418e08e20d3b9e139a1a3ef0208db4844.tar.gz llvm-e318613418e08e20d3b9e139a1a3ef0208db4844.tar.bz2 |
[NFC][TLI] Move VecFuncs to statics to reduce stack usage (#86829)
`TargetLibraryInfoImpl::addVectorizableFunctionsFromVecLib` has a lot of
data in local stack arrays, which MSVC keeps on the stack even in
release builds. To reduce stack usage, the data arrays (which are
const), are moved outside the function as statics. This drops the method
stack usage to be negligible.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions