[all-commits] [llvm/llvm-project] e190b7: [Coroutines] Maintain the position of final suspend

Chuanqi Xu via All-commits all-commits at lists.llvm.org
Thu Aug 11 22:05:46 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e190b7cc90ca5ee712ca3982bf476afa9e8acb3b
      https://github.com/llvm/llvm-project/commit/e190b7cc90ca5ee712ca3982bf476afa9e8acb3b
  Author: Chuanqi Xu <yedeng.yd at linux.alibaba.com>
  Date:   2022-08-12 (Fri, 12 Aug 2022)

  Changed paths:
    A clang/test/CodeGenCoroutines/pr56329.cpp
    M llvm/lib/Transforms/Coroutines/CoroSplit.cpp
    A llvm/test/Transforms/Coroutines/coro-preserve-final.ll

  Log Message:
  -----------
  [Coroutines] Maintain the position of final suspend

Closing https://github.com/llvm/llvm-project/issues/56329

The problem happens when we try to simplify the suspend points. We might
break the assumption that the final suspend lives in the last slot of
Shape.CoroSuspends. This patch tries to main the assumption and fixes
the problem.




More information about the All-commits mailing list