From 40e3b804e5a2c1b27b94c599e159ff8918fe9fc2 Mon Sep 17 00:00:00 2001 From: klensy Date: Sat, 17 May 2025 13:18:46 +0300 Subject: [PATCH] opt-dist: fix deprecated BOLT -icf=1 option --- src/tools/opt-dist/src/bolt.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/opt-dist/src/bolt.rs b/src/tools/opt-dist/src/bolt.rs index 0f1fda38115c7..a06e59fcc412c 100644 --- a/src/tools/opt-dist/src/bolt.rs +++ b/src/tools/opt-dist/src/bolt.rs @@ -80,7 +80,7 @@ pub fn bolt_optimize( // Move jump tables to a separate section .arg("-jump-tables=move") // Fold functions with identical code - .arg("-icf=1") + .arg("-icf=all") // The following flag saves about 50 MiB of libLLVM.so size. // However, it succeeds very non-deterministically. To avoid frequent artifact size swings, // it is kept disabled for now.