mirror of
https://github.com/vosen/ZLUDA.git
synced 2025-09-28 20:29:11 +00:00
Always inline, we know better
This commit is contained in:
parent
0f04a40e92
commit
f96ea498bd
1 changed files with 4 additions and 1 deletions
|
@ -219,6 +219,10 @@ pub fn compile_bitcode(
|
||||||
compile_to_exec.set_isa_name(gcn_arch)?;
|
compile_to_exec.set_isa_name(gcn_arch)?;
|
||||||
compile_to_exec.set_language(Language::LlvmIr)?;
|
compile_to_exec.set_language(Language::LlvmIr)?;
|
||||||
let common_options = [
|
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
|
// This makes no sense, but it makes ockl linking work
|
||||||
c"-Xclang",
|
c"-Xclang",
|
||||||
c"-mno-link-builtin-bitcode-postopt",
|
c"-mno-link-builtin-bitcode-postopt",
|
||||||
|
@ -237,7 +241,6 @@ pub fn compile_bitcode(
|
||||||
]
|
]
|
||||||
.into_iter();
|
.into_iter();
|
||||||
let opt_options = if cfg!(debug_assertions) {
|
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""]
|
[c"-g", c"-mamdgpu-precise-memory-op", c"", c"", c""]
|
||||||
} else {
|
} else {
|
||||||
[
|
[
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue