[clang] Reapply "[Clang][CMake] Use IRPGO instead of FE PGO for Cmake Caches … (PR #160133)

Aiden Grossman via cfe-commits cfe-commits at lists.llvm.org
Mon Sep 22 08:40:28 PDT 2025


https://github.com/boomanaiden154 created https://github.com/llvm/llvm-project/pull/160133

…(#155957)"

This reverts commit 8ed489914e5bdfe65e1c8fdeec335f21cd7b33a1.

This reapplies the original patch now that the issue in ControlHeightReduction (#159621) has been fixed in #159686.

>From 52e8741e4d2f90420d9bd06d135f92032b909ff7 Mon Sep 17 00:00:00 2001
From: Aiden Grossman <aidengrossman at google.com>
Date: Mon, 22 Sep 2025 15:38:07 +0000
Subject: [PATCH] Reapply "[Clang][CMake] Use IRPGO instead of FE PGO for Cmake
 Caches (#155957)"

This reverts commit 8ed489914e5bdfe65e1c8fdeec335f21cd7b33a1.

This reapplies the original patch now that the issue in
ControlHeightReduction (#159621) has been fixed in #159686.
---
 clang/cmake/caches/PGO.cmake | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/clang/cmake/caches/PGO.cmake b/clang/cmake/caches/PGO.cmake
index 15bc755d110d1..d6471160037c1 100644
--- a/clang/cmake/caches/PGO.cmake
+++ b/clang/cmake/caches/PGO.cmake
@@ -5,7 +5,7 @@ set(LLVM_ENABLE_PROJECTS "clang;lld" CACHE STRING "")
 set(LLVM_ENABLE_RUNTIMES "compiler-rt;libcxx;libcxxabi;libunwind" CACHE STRING "")
 
 set(LLVM_TARGETS_TO_BUILD Native CACHE STRING "")
-set(BOOTSTRAP_LLVM_BUILD_INSTRUMENTED ON CACHE BOOL "")
+set(BOOTSTRAP_LLVM_BUILD_INSTRUMENTED IR CACHE BOOL "")
 set(CLANG_BOOTSTRAP_TARGETS
   generate-profdata
   stage2



More information about the cfe-commits mailing list