[PATCH] D74183: [IRGen] Add an alignment attribute to underaligned sret parameters
John McCall via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Feb 6 18:47:29 PST 2020
rjmccall added inline comments.
================
Comment at: clang/lib/CodeGen/CGCall.cpp:2077
+ getDataLayout().getABITypeAlignment(getTypes().ConvertType(RetTy)))
+ SRETAttrs.addAlignmentAttr(Align);
ArgAttrs[IRFunctionArgs.getSRetArgNo()] =
----------------
Why only when under-aligned? Just to avoid churning tests? I think we should apply this unconditionally.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D74183/new/
https://reviews.llvm.org/D74183
More information about the cfe-commits
mailing list