Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/engine/Tuning.v3
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ component SpcTuning {
var inlineWhammProbes = true; // inline whamm probe functions
var maxInlineBytecodeSize = 100; // max bytecode size to inline
var maxInlineParams = 10; // max parameters to inline
var maxInlineDepth = 0; // max inlining nesting depth
var maxInlineDepth = 0; // max inlining nesting depth for regular (non-fast) functions
var maxFastInlineDepth = 0; // max inlining nesting depth for fast functions
def probeCallFreesRegs = true; // probe calls frees registers in abstract state
def runtimeCallFreesRegs = true; // runtime calls frees registers in abstract state
var intrinsifyMemoryProbes = true;
Expand Down
2 changes: 2 additions & 0 deletions src/engine/compiler/CompilerOptions.v3
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ component CompilerOptions {
.onSet(fun v => void(SpcTuning.maxInlineParams = v));
group.newIntOption("inline-max-depth", SpcTuning.maxInlineDepth, "Maximum inlining nesting depth.")
.onSet(fun v => void(SpcTuning.maxInlineDepth = v));
group.newIntOption("fast-inline-max-depth", SpcTuning.maxFastInlineDepth, "Maximum inlining nesting depth for fast functions.")
.onSet(fun v => void(SpcTuning.maxFastInlineDepth = v));
}

def printHelp(out: TraceBuilder) {
Expand Down
Loading