[all-commits] [llvm/llvm-project] e31861: [NFC][TLI] Move VecFuncs to statics to reduce stac...

Alex MacLean via All-commits all-commits at lists.llvm.org
Wed Mar 27 16:50:21 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e318613418e08e20d3b9e139a1a3ef0208db4844
      https://github.com/llvm/llvm-project/commit/e318613418e08e20d3b9e139a1a3ef0208db4844
  Author: Alex MacLean <amaclean at nvidia.com>
  Date:   2024-03-27 (Wed, 27 Mar 2024)

  Changed paths:
    M llvm/lib/Analysis/TargetLibraryInfo.cpp

  Log Message:
  -----------
  [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.



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