[PATCH] D129530: [coroutine] add nomerge function attribute to `llvm.coro.save`

Chuanqi Xu via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Jul 11 19:16:54 PDT 2022


ChuanqiXu accepted this revision.
ChuanqiXu added a comment.
This revision is now accepted and ready to land.

In D129530#3644091 <https://reviews.llvm.org/D129530#3644091>, @ychen wrote:

> In D129530#3644074 <https://reviews.llvm.org/D129530#3644074>, @ChuanqiXu wrote:
>
>> This looks good to me basically. I would love to see an example to test the two coro.save wouldn't be merged.
>
> Yep, `hoist-skip-token.ll` is testing this.

Oh, sorry. I didn't notice that. The current version should be fine.

Personally, I would like to move the test to `Transforms/Coroutine` and add a new test that the two `llvm.coro.suspend` are the same but they couldn't be merged. This is not required.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D129530/new/

https://reviews.llvm.org/D129530



More information about the cfe-commits mailing list