[Pipelines] Hoist CoroEarly as a module pass
authorChuanqi Xu <yedeng.yd@linux.alibaba.com>
Wed, 13 Apr 2022 09:03:13 +0000 (17:03 +0800)
committerChuanqi Xu <yedeng.yd@linux.alibaba.com>
Tue, 19 Apr 2022 03:04:24 +0000 (11:04 +0800)
commitf9bee35689c48cc2651905c478d543f3b24d2adf
tree89a68798bbd9abaff95f303a6104d05da45b3bb8
parent2d92ee97f1afb3657579a46a7dd4611b61e9cc16
[Pipelines] Hoist CoroEarly as a module pass

This change could reduce the time we call `declaresCoroEarlyIntrinsics`.
And it is helpful for future changes.

Reviewed By: aeubanks

Differential Revision: https://reviews.llvm.org/D123925
19 files changed:
llvm/include/llvm/Transforms/Coroutines/CoroEarly.h
llvm/lib/Passes/PassBuilderPipelines.cpp
llvm/lib/Passes/PassRegistry.def
llvm/lib/Transforms/Coroutines/CoroEarly.cpp
llvm/test/Other/new-pm-defaults.ll
llvm/test/Other/new-pm-thinlto-defaults.ll
llvm/test/Other/new-pm-thinlto-postlink-pgo-defaults.ll
llvm/test/Other/new-pm-thinlto-postlink-samplepgo-defaults.ll
llvm/test/Other/new-pm-thinlto-prelink-pgo-defaults.ll
llvm/test/Other/new-pm-thinlto-prelink-samplepgo-defaults.ll
llvm/test/Transforms/Coroutines/coro-debug-O2.ll
llvm/test/Transforms/Coroutines/coro-debug-coro-frame.ll
llvm/test/Transforms/Coroutines/coro-debug-dbg.addr-swift.ll
llvm/test/Transforms/Coroutines/coro-debug-dbg.addr.ll
llvm/test/Transforms/Coroutines/coro-debug-dbg.values-not_used_in_frame.ll
llvm/test/Transforms/Coroutines/coro-debug-dbg.values.ll
llvm/test/Transforms/Coroutines/coro-retcon-unreachable.ll
llvm/test/Transforms/Coroutines/coro-split-recursive.ll
llvm/test/Transforms/Coroutines/smoketest.ll