[PATCH] D136285: Bad optimization with alloca and intrinsic function stackrestore
Jamie Schmeiser via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 19 14:20:15 PDT 2022
jamieschmeiser added a comment.
I found the following in clang/lib/CodeGen/CGCall.cpp:
// Insert a stack save if we're going to need any inalloca args.
if (hasInAllocaArgs(CGM, ExplicitCC, ArgTypes)) {
assert(getTarget().getTriple().getArch() == llvm::Triple::x86 &&
"inalloca only supported on x86");
Args.allocateArgumentMemory(*this);
}
How universal is inalloca? Or is this something different?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D136285/new/
https://reviews.llvm.org/D136285
More information about the llvm-commits
mailing list