[PATCH] D126715: [coro async] Add code to support dynamic aligment of over-aligned types in async frames
Arnold Schwaighofer via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 2 12:46:30 PDT 2022
aschwaighofer added inline comments.
================
Comment at: llvm/lib/Transforms/Coroutines/CoroFrame.cpp:1809
for (const auto &Alias : A.Aliases) {
- auto *FramePtr = GetFramePointer(Alloca);
+ auto *FramePtr = GetFramePointer(Alloca, false /*NeedsDynamicAlignment*/);
auto *FramePtrRaw =
----------------
rjmccall wrote:
> These three sites all need to be `A.NeedsDynamicAlignment` in case the original alloca is over-aligned, right? Should we just make `GetFramePointer` take a `const Field &` so that this falls out?
I relied on the fact that for async ABI we won't get here. (line 1751)
I will rewrite it as you said so that this is not a ticking time bomb (though the asserts I added would catch that)
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D126715/new/
https://reviews.llvm.org/D126715
More information about the llvm-commits
mailing list