[all-commits] [llvm/llvm-project] b9a243: [Coroutines] Enhance symmetric transfer for consta...

Chuanqi Xu via All-commits all-commits at lists.llvm.org
Wed Jan 12 12:07:23 PST 2022


  Branch: refs/heads/release/13.x
  Home:   https://github.com/llvm/llvm-project
  Commit: b9a243d1cac2aae0596dc5a1f097e1adc1fe5102
      https://github.com/llvm/llvm-project/commit/b9a243d1cac2aae0596dc5a1f097e1adc1fe5102
  Author: Chuanqi Xu <yedeng.yd at linux.alibaba.com>
  Date:   2022-01-12 (Wed, 12 Jan 2022)

  Changed paths:
    M llvm/lib/Transforms/Coroutines/CoroSplit.cpp
    A llvm/test/Transforms/Coroutines/coro-split-musttail4.ll

  Log Message:
  -----------
  [Coroutines] Enhance symmetric transfer for constant CmpInst

This fixes bug52896.

Simply, some symmetric transfer optimization chances get invalided due
to we delete some inlined optimization passes in 822b92a. This would
cause stack-overflow in some situations which should be avoided by the
design of coroutine. This patch tries to fix this by transforming the
constant CmpInst instruction which was done in the deleted passes.

Reviewed By: rjmccall, junparser

Differential Revision: https://reviews.llvm.org/D116327

(cherry picked from commit 403772ff1ce5618c8d02316531386b415312274a)




More information about the All-commits mailing list