Skip to content

Commit

Permalink
register alloc greedy
Browse files Browse the repository at this point in the history
  • Loading branch information
oflatt committed Nov 12, 2024
1 parent ba456ef commit 86b8a4a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1083,6 +1083,10 @@ impl Run {
.arg(format!("-{}", llvm_level))
.arg("-fno-vectorize")
.arg("-fno-slp-vectorize")
.arg("-mllvm")
.arg("-regalloc=greedy")
.arg("-mllvm")
.arg("-optimize-regalloc")
.arg("-o")
.arg(executable.clone()),
"failed to compile llvm ir",
Expand All @@ -1095,6 +1099,10 @@ impl Run {
.arg(format!("-{}", llvm_level))
.arg("-fno-vectorize")
.arg("-fno-slp-vectorize")
.arg("-mllvm")
.arg("-regalloc=greedy")
.arg("-mllvm")
.arg("-optimize-regalloc")
.arg("-emit-llvm")
.arg("-S")
.arg("-o")
Expand Down

0 comments on commit 86b8a4a

Please sign in to comment.