[PATCH] D76673: [Attributor][FIX] Prevent alignment breakage wrt. must-tail calls
Reid Kleckner via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 26 16:52:49 PDT 2020
rnk added a comment.
lgtm
I think the current verifier check is overly conservative. I think the `align` argument attribute is only an ABI-relevant attribute when it is used with `byval`. In your test case, it seems to refer to the alignment of the pointee of a pointer argument, not the alignment of the argument itself. In that case, it is not ABI relevant, and we could tolerate the mismatch.
However, I just don't think it's worth worrying about this detail in attributor. Mainly, it points out that `align` is overloaded. =(
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D76673/new/
https://reviews.llvm.org/D76673
More information about the llvm-commits
mailing list