https://github.com/ilovepi created 
https://github.com/llvm/llvm-project/pull/156060

After #155957 pointed it out, we're actually using the frontend PGO in
the Fuchsia cmake cache files.

>From 42d2e68d4d3e0f16ffe49f1512075bb57237b74c Mon Sep 17 00:00:00 2001
From: Paul Kirth <paulki...@google.com>
Date: Fri, 29 Aug 2025 09:57:19 -0700
Subject: [PATCH] [Fuchsia] Use IR PGO in the Fuchsia toolchain build

After #155957 pointed it out, we're actually using the frontend PGO in
the Fuchsia cmake cache files.
---
 clang/cmake/caches/Fuchsia.cmake | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/clang/cmake/caches/Fuchsia.cmake b/clang/cmake/caches/Fuchsia.cmake
index a3f86f673b493..46ae7c603f67a 100644
--- a/clang/cmake/caches/Fuchsia.cmake
+++ b/clang/cmake/caches/Fuchsia.cmake
@@ -179,7 +179,7 @@ set(BOOTSTRAP_LLVM_ENABLE_LLD ON CACHE BOOL "")
 set(BOOTSTRAP_LLVM_ENABLE_LTO ON CACHE BOOL "")
 
 if(FUCHSIA_ENABLE_PGO)
-  set(BOOTSTRAP_LLVM_BUILD_INSTRUMENTED ON CACHE BOOL "")
+  set(BOOTSTRAP_LLVM_BUILD_INSTRUMENTED IR CACHE BOOL "")
 
   set(_FUCHSIA_BOOTSTRAP_TARGETS
     generate-profdata

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to