Skip to content

Commit b1c8228

Browse files
[CMake] Remove LLVM_ENABLE_IR_PGO Option (#155958)
It has been deprecated for eight years now (a702fa1), and all users that I know of are using LLVM_BUILD_INSTRUMENTED.
1 parent 149fb57 commit b1c8228

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

llvm/cmake/modules/HandleLLVMOptions.cmake

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1172,16 +1172,13 @@ if(LLVM_ENABLE_EH AND NOT LLVM_ENABLE_RTTI)
11721172
message(FATAL_ERROR "Exception handling requires RTTI. You must set LLVM_ENABLE_RTTI to ON")
11731173
endif()
11741174

1175-
option(LLVM_ENABLE_IR_PGO "Build LLVM and tools with IR PGO instrumentation (deprecated)" Off)
1176-
mark_as_advanced(LLVM_ENABLE_IR_PGO)
1177-
11781175
set(LLVM_BUILD_INSTRUMENTED OFF CACHE STRING "Build LLVM and tools with PGO instrumentation. May be specified as IR or Frontend")
11791176
set(LLVM_VP_COUNTERS_PER_SITE "1.5" CACHE STRING "Value profile counters to use per site for IR PGO with Clang")
11801177
mark_as_advanced(LLVM_BUILD_INSTRUMENTED LLVM_VP_COUNTERS_PER_SITE)
11811178
string(TOUPPER "${LLVM_BUILD_INSTRUMENTED}" uppercase_LLVM_BUILD_INSTRUMENTED)
11821179

11831180
if (LLVM_BUILD_INSTRUMENTED)
1184-
if (LLVM_ENABLE_IR_PGO OR uppercase_LLVM_BUILD_INSTRUMENTED STREQUAL "IR")
1181+
if (uppercase_LLVM_BUILD_INSTRUMENTED STREQUAL "IR")
11851182
append("-fprofile-generate=\"${LLVM_PROFILE_DATA_DIR}\""
11861183
CMAKE_CXX_FLAGS
11871184
CMAKE_C_FLAGS)

0 commit comments

Comments
 (0)