Skip to content

Commit

Permalink
disable intrinsification for dyn mode
Browse files Browse the repository at this point in the history
  • Loading branch information
thelongmarch-azx committed Nov 25, 2024
1 parent 71b9eb2 commit 58d63d0
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/engine/compiler/SinglePassCompiler.v3
Original file line number Diff line number Diff line change
Expand Up @@ -352,9 +352,12 @@ class SinglePassCompiler(xenv: SpcExecEnv, masm: MacroAssembler, regAlloc: RegAl
masm.emit_debugger_breakpoint();
return;
}
x: WhammProbe => if (SpcTuning.intrinsifyWhammProbe && WasmFunction.?(x.func)) {
emitWhammProbe(x);
return;
x: WhammProbe => {
var is_dyn = X86_64DynamicStrategy.?(Execute.tiering);
if (SpcTuning.intrinsifyWhammProbe && WasmFunction.?(x.func) && !is_dyn) {
emitWhammProbe(x);
return;
}
}
}
// spill everything
Expand Down Expand Up @@ -443,6 +446,7 @@ class SinglePassCompiler(xenv: SpcExecEnv, masm: MacroAssembler, regAlloc: RegAl
emit_compute_vsp(vsp_reg, state.sp + u32.view(whamm_sig.length));
// Call to the entrypoint.
masm.emit_call_r(tmp);
emit_unwind_check();
emit_reload_regs();
if (!probeSpillMode.free_regs) state.emitRestoreAll(resolver);
}
Expand Down

0 comments on commit 58d63d0

Please sign in to comment.