aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorAlex MacLean <amaclean@nvidia.com>2024-03-27 16:49:59 -0700
committerGitHub <noreply@github.com>2024-03-27 16:49:59 -0700
commite318613418e08e20d3b9e139a1a3ef0208db4844 (patch)
tree1b612070b0881b75346db10d25aa981e00f2fba1 /clang/lib/CodeGen/CodeGenModule.cpp
parent19185d5a72565fce34521cb59d6c87232a86e0d4 (diff)
downloadllvm-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