From f96ea498bd6a5280ffff308cfd6c6c58a82a07a6 Mon Sep 17 00:00:00 2001 From: Andrzej Janik Date: Wed, 17 Sep 2025 00:55:54 +0000 Subject: [PATCH] Always inline, we know better --- comgr/src/lib.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/comgr/src/lib.rs b/comgr/src/lib.rs index 8ba0a87..8546203 100644 --- a/comgr/src/lib.rs +++ b/comgr/src/lib.rs @@ -219,6 +219,10 @@ pub fn compile_bitcode( compile_to_exec.set_isa_name(gcn_arch)?; compile_to_exec.set_language(Language::LlvmIr)?; let common_options = [ + c"-mllvm", + c"-ignore-tti-inline-compatible", + // c"-mllvm", + // c"-amdgpu-early-inline-all=true", // This makes no sense, but it makes ockl linking work c"-Xclang", c"-mno-link-builtin-bitcode-postopt", @@ -237,7 +241,6 @@ pub fn compile_bitcode( ] .into_iter(); let opt_options = if cfg!(debug_assertions) { - //[c"-g", c"-mamdgpu-precise-memory-op", c"-mllvm", c"-print-before-all", c""] [c"-g", c"-mamdgpu-precise-memory-op", c"", c"", c""] } else { [