From 0db948120826d59fbede50ac9abe2ad1862dfaa3 Mon Sep 17 00:00:00 2001 From: Arthur Eubanks Date: Fri, 17 Sep 2021 14:47:28 -0700 Subject: [PATCH] [NFC] Remove FIXMEs about calling LLVMContext::yield() Nobody has complained about this, and the documentation for LLVMContext::yield() states that LLVM is allowed to never call it. Reviewed By: asbirlea Differential Revision: https://reviews.llvm.org/D110008 --- llvm/include/llvm/IR/PassManager.h | 6 ------ llvm/lib/Analysis/CGSCCPassManager.cpp | 6 ------ llvm/lib/Transforms/Scalar/LoopPassManager.cpp | 12 ------------ 3 files changed, 24 deletions(-) diff --git a/llvm/include/llvm/IR/PassManager.h b/llvm/include/llvm/IR/PassManager.h index f2cbb67..7e42917 100644 --- a/llvm/include/llvm/IR/PassManager.h +++ b/llvm/include/llvm/IR/PassManager.h @@ -536,12 +536,6 @@ public: // Finally, intersect the preserved analyses to compute the aggregate // preserved set for this pass manager. PA.intersect(std::move(PassPA)); - - // FIXME: Historically, the pass managers all called the LLVM context's - // yield function here. We don't have a generic way to acquire the - // context and it isn't yet clear what the right pattern is for yielding - // in the new pass manager so it is currently omitted. - //IR.getContext().yield(); } // Invalidation was handled after each pass in the above loop for the diff --git a/llvm/lib/Analysis/CGSCCPassManager.cpp b/llvm/lib/Analysis/CGSCCPassManager.cpp index 253cc0b..5573ad1 100644 --- a/llvm/lib/Analysis/CGSCCPassManager.cpp +++ b/llvm/lib/Analysis/CGSCCPassManager.cpp @@ -119,12 +119,6 @@ PassManager