[Coroutines] Remove CoroElide from O0 pipeline
authorXun Li <lxfind@gmail.com>
Tue, 29 Jun 2021 02:28:27 +0000 (19:28 -0700)
committerXun Li <lxfind@gmail.com>
Tue, 29 Jun 2021 02:28:27 +0000 (19:28 -0700)
commit31eb696fc4cd3b1ed8054d88af54f214c0f92989
treebdf41691aefb1afe21946a29d103c5e75ab7b711
parenta8a6e5b094aac642f436390294ec837400c521bb
[Coroutines] Remove CoroElide from O0 pipeline

CoroElide pass works only when a post-split coroutine is inlined into another post-split coroutine.
In O0, there is no inlining after CoroSplit, and hence no CoroElide can happen.
It's useless to put CoroElide pass in the O0 pipeline and it will never be triggered (unless I miss anything).

Differential Revision: https://reviews.llvm.org/D105066
clang/test/CodeGenCoroutines/coro-newpm-pipeline.cpp
llvm/lib/Passes/PassBuilder.cpp
llvm/test/Transforms/Coroutines/smoketest.ll