aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineFunctionSplitter.cpp
diff options
context:
space:
mode:
authorChuanqi Xu <yedeng.yd@linux.alibaba.com>2021-04-22 11:20:20 +0800
committerChuanqi Xu <yedeng.yd@linux.alibaba.com>2021-04-22 11:21:37 +0800
commit77ca2a689368e3a27a72b432ab93c9c352d73073 (patch)
treeeca7236abba1e17c6e1ea51ec67d0d163b7a7ae8 /llvm/lib/CodeGen/MachineFunctionSplitter.cpp
parentb9e9e2eef18c80b2ee98fb4a5c00ce29bb105728 (diff)
downloadllvm-77ca2a689368e3a27a72b432ab93c9c352d73073.zip
llvm-77ca2a689368e3a27a72b432ab93c9c352d73073.tar.gz
llvm-77ca2a689368e3a27a72b432ab93c9c352d73073.tar.bz2
[Coroutine] Collect CoroBegin if all of terminators are dominated by one coro.destroy
Summary: The original logic seems to be we could collecting a CoroBegin if one of the terminators could be dominated by one of coro.destroy, which doesn't make sense. This patch rewrites the logics to collect CoroBegin if all of terminators are dominated by one coro.destroy. If there is no such coro.destroy, we would call hasEscapePath to evaluate if we should collect it. Test Plan: check-llvm Reviewed by: lxfind Differential Revision: https://reviews.llvm.org/D100614
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunctionSplitter.cpp')
0 files changed, 0 insertions, 0 deletions