[llvm] [BOLT] Add support for safe-icf (PR #116275)
Amir Ayupov via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 13 12:40:51 PST 2024
================
@@ -398,7 +396,7 @@ Error BinaryFunctionPassManager::runAllPasses(BinaryContext &BC) {
opts::StripRepRet);
Manager.registerPass(std::make_unique<IdenticalCodeFolding>(PrintICF),
- opts::ICF);
+ opts::ICF != IdenticalCodeFolding::ICFLevel::None);
----------------
aaupov wrote:
nit: define a helper method `bool operator()` to avoid spelling this check in several places?
https://github.com/llvm/llvm-project/pull/116275
More information about the llvm-commits
mailing list