[PATCH] D94891: [Coroutine] Remain alignment information when merging frame variables

Chuanqi Xu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Jan 17 19:23:27 PST 2021


ChuanqiXu created this revision.
ChuanqiXu added reviewers: jmorse, lxfind, junparser.
Herald added a subscriber: hiraditya.
ChuanqiXu requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

This is to address bug48712 <https://bugs.llvm.org/show_bug.cgi?id=48712>.
The solution in this patch is that when we want to merge two variable `a` into the storage frame of variable `b` only if the alignment of `a` is multiple of `b`. 
There may be other strategies. But now I think they are hard to handle and benefit little. Or we can implement them in the future.

Test-plan: check-llvm


https://reviews.llvm.org/D94891

Files:
  llvm/lib/Transforms/Coroutines/CoroFrame.cpp
  llvm/test/Transforms/Coroutines/coro-frame-reuse-alloca-04.ll
  llvm/test/Transforms/Coroutines/coro-frame-reuse-alloca-05.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D94891.317256.patch
Type: text/x-patch
Size: 10401 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210118/af257367/attachment.bin>


More information about the llvm-commits mailing list