[llvm] [Asan] Teach FunctionStackPoisoner to filter out struct type with scalable vector type. (PR #93406)
Philip Reames via llvm-commits
llvm-commits at lists.llvm.org
Wed May 29 07:53:40 PDT 2024
================
@@ -1139,8 +1139,16 @@ struct FunctionStackPoisoner : public InstVisitor<FunctionStackPoisoner> {
/// Collect Alloca instructions we want (and can) handle.
void visitAllocaInst(AllocaInst &AI) {
// FIXME: Handle scalable vectors instead of ignoring them.
+ auto IsScalableVecTy = [](const Type *Ty) {
+ if (const auto *STy = dyn_cast<StructType>(Ty))
----------------
preames wrote:
See containsHomogeneousScalableVectorTypes on StructType.
https://github.com/llvm/llvm-project/pull/93406
More information about the llvm-commits
mailing list