[llvm-branch-commits] [llvm] [LLVM][Coroutines] Transform "coro_must_elide" calls to switch ABI coroutines to the `noalloc` variant (PR #99285)

Adrian Vogelsgesang via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Fri Jul 19 16:50:01 PDT 2024


================
@@ -968,8 +969,8 @@ PassBuilder::buildInlinerPipeline(OptimizationLevel Level,
   // it's been modified since.
   MainCGPipeline.addPass(createCGSCCToFunctionPassAdaptor(
       RequireAnalysisPass<ShouldNotRunFunctionPassesAnalysis, Function>()));
-
   MainCGPipeline.addPass(CoroSplitPass(Level != OptimizationLevel::O0));
+  MainCGPipeline.addPass(CoroAnnotationElidePass());
----------------
vogelsgesang wrote:

Thanks for that context! I assume, as part of relanding #90310 you would then also adjust the way the `CoroAnnotationElide` registration?

Do you happen to know the answer to https://github.com/llvm/llvm-project/pull/99283#discussion_r1684973257 or can provide some guidance there?

https://github.com/llvm/llvm-project/pull/99285


More information about the llvm-branch-commits mailing list