[llvm] [ctx_prof] Extend `WorkloadImportsManager` to use the contextual profile (PR #98682)

Mircea Trofin via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 17 13:24:12 PDT 2024


================
@@ -115,6 +115,15 @@ TEST_F(PGOCtxProfRWTest, RoundTrip) {
     EXPECT_EQ(Ctxes.size(), 2U);
     for (auto &[G, R] : roots())
       checkSame(*R, Ctxes.find(G)->second);
+
+    DenseSet<GlobalValue::GUID> Guids;
+    Ctxes.at(1U).getContainedGuids(Guids);
----------------
mtrofin wrote:

It's not, but this is the API that the rest of this patch hinges on. I could introduce the test separately.

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


More information about the llvm-commits mailing list