[llvm] [NFC][Coroutines] Remove redundant checks for replacing PrepareFns (PR #98392)

Chuanqi Xu via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 10 22:01:17 PDT 2024


================
@@ -2108,12 +2108,6 @@ PreservedAnalyses CoroSplitPass::run(LazyCallGraph::SCC &C,
   if (Coroutines.empty() && PrepareFns.empty())
     return PreservedAnalyses::all();
 
-  if (Coroutines.empty()) {
----------------
ChuanqiXu9 wrote:

But it reads the PrepareFns, are they the same thing?

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


More information about the llvm-commits mailing list