OSDN Git Service

[CoroSplit][NewPM] Don't call LazyCallGraph functions to split when no clones
authorArthur Eubanks <aeubanks@google.com>
Thu, 7 Jan 2021 20:45:23 +0000 (12:45 -0800)
committerArthur Eubanks <aeubanks@google.com>
Thu, 7 Jan 2021 22:06:35 +0000 (14:06 -0800)
commit1a2eaebc09c6a200f93b8beb37130c8b8aab3934
tree3416f7365ff654e10cf55c3a5d9b4e2727618931
parentd002cd4e0f10f20c4f8b419ffa23d782636e46d8
[CoroSplit][NewPM] Don't call LazyCallGraph functions to split when no clones

Apparently there can be no clones, as happens in
coro-retcon-unreachable.ll.

The alternative is to allow no split functions in
addSplitRefRecursiveFunctions(), but it seems better to have the caller
make sure it's not accidentally splitting no functions out.

Reviewed By: rnk

Differential Revision: https://reviews.llvm.org/D94258
llvm/lib/Transforms/Coroutines/CoroSplit.cpp
llvm/test/Transforms/Coroutines/coro-retcon-unreachable.ll