about summary refs log tree commit diff
diff options
context:
space:
mode:
authorklensy <klensy@users.noreply.github.com>2025-05-17 13:18:46 +0300
committerklensy <klensy@users.noreply.github.com>2025-05-17 13:18:46 +0300
commit40e3b804e5a2c1b27b94c599e159ff8918fe9fc2 (patch)
treeddd0924570c040e930219dbdfcc82ce400a7f3d5
parenta69bc17fb8026bdc0d24bb1896ff95f0eba1da4e (diff)
downloadrust-40e3b804e5a2c1b27b94c599e159ff8918fe9fc2.tar.gz
rust-40e3b804e5a2c1b27b94c599e159ff8918fe9fc2.zip
opt-dist: fix deprecated BOLT -icf=1 option
-rw-r--r--src/tools/opt-dist/src/bolt.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/opt-dist/src/bolt.rs b/src/tools/opt-dist/src/bolt.rs
index 0f1fda38115..a06e59fcc41 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.