[PATCH] D123925: [Pipelines] Hoist CoroEarly as a module pass
Chuanqi Xu via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 18 01:05:00 PDT 2022
ChuanqiXu created this revision.
ChuanqiXu added a reviewer: aeubanks.
ChuanqiXu added a project: LLVM.
Herald added subscribers: ormris, wenlei, steven_wu, hiraditya.
Herald added a project: All.
ChuanqiXu requested review of this revision.
Herald added a subscriber: llvm-commits.
Now the CoroEarly pass would run `declaresCoroEarlyIntrinsics(const Module &M)` for every function. This looks wasteful. I think we could save the time by hoisting CoroEarly as a module pass.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D123925
Files:
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D123925.423345.patch
Type: text/x-patch
Size: 16135 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220418/dc8cf050/attachment.bin>
More information about the llvm-commits
mailing list