[llvm] bca9676 - [cmake] Remove LLVM_USE_NEWPM option
Arthur Eubanks via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 1 20:25:26 PDT 2022
Author: Arthur Eubanks
Date: 2022-04-01T20:24:38-07:00
New Revision: bca96760f75871d8dc0d868042a6417a65c1a18a
URL: https://github.com/llvm/llvm-project/commit/bca96760f75871d8dc0d868042a6417a65c1a18a
DIFF: https://github.com/llvm/llvm-project/commit/bca96760f75871d8dc0d868042a6417a65c1a18a.diff
LOG: [cmake] Remove LLVM_USE_NEWPM option
This option tells the host clang to use the new pass manager.
Given that it's been the default for a while, this seems unnecessary.
This was added in D57068.
(this does not affect any LLVM/Clang functionality)
Reviewed By: MaskRay
Differential Revision: https://reviews.llvm.org/D122947
Added:
Modified:
llvm/cmake/modules/HandleLLVMOptions.cmake
llvm/docs/CMake.rst
Removed:
################################################################################
diff --git a/llvm/cmake/modules/HandleLLVMOptions.cmake b/llvm/cmake/modules/HandleLLVMOptions.cmake
index a8907a3bc0423..ef05cc48ce5fe 100644
--- a/llvm/cmake/modules/HandleLLVMOptions.cmake
+++ b/llvm/cmake/modules/HandleLLVMOptions.cmake
@@ -974,16 +974,6 @@ if(LLVM_ENABLE_EH AND NOT LLVM_ENABLE_RTTI)
message(FATAL_ERROR "Exception handling requires RTTI. You must set LLVM_ENABLE_RTTI to ON")
endif()
-option(LLVM_USE_NEWPM "Build LLVM using the experimental new pass manager" Off)
-mark_as_advanced(LLVM_USE_NEWPM)
-if (LLVM_USE_NEWPM)
- append("-fexperimental-new-pass-manager"
- CMAKE_CXX_FLAGS
- CMAKE_C_FLAGS
- CMAKE_EXE_LINKER_FLAGS
- CMAKE_SHARED_LINKER_FLAGS)
-endif()
-
option(LLVM_ENABLE_IR_PGO "Build LLVM and tools with IR PGO instrumentation (deprecated)" Off)
mark_as_advanced(LLVM_ENABLE_IR_PGO)
diff --git a/llvm/docs/CMake.rst b/llvm/docs/CMake.rst
index 4f5a0bb3617c1..8fc40e7ba3bd2 100644
--- a/llvm/docs/CMake.rst
+++ b/llvm/docs/CMake.rst
@@ -738,9 +738,6 @@ enabled sub-projects. Nearly all of these variable names begin with
search. For example to link LLVM with the Gold linker, cmake can be invoked
with ``-DLLVM_USE_LINKER=gold``.
-**LLVM_USE_NEWPM**:BOOL
- If enabled, use the experimental new pass manager.
-
**LLVM_USE_OPROFILE**:BOOL
Enable building OProfile JIT support. Defaults to OFF.
More information about the llvm-commits
mailing list