[PATCH] D159354: [SROA] Limit the number of allowed slices when trying to split allocas

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 1 06:15:50 PDT 2023


nikic added inline comments.


================
Comment at: llvm/lib/Transforms/Scalar/SROA.cpp:127
+static cl::opt<int>
+    SROAMaxAllocaSlices("sroa-max-alloca-slices", cl::init(32),
+                        cl::desc("Maximum number of alloca slices allowed "
----------------
This limit is probably way too low. I'd expect something on the order of 1024 here, otherwise there will be regressions.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D159354/new/

https://reviews.llvm.org/D159354



More information about the llvm-commits mailing list