bnjbvr opened PR #1853 from wasmtime-cranelift-flag
to master
:
This would be handy to try different Cranelift settings while running on real hardware. My immediate use case is trying a different regalloc on aarch64, but I made something generic that would allow to use other cranelift flags in wasmtime too.
bnjbvr requested alexcrichton for a review on PR #1853.
alexcrichton submitted PR Review.
alexcrichton submitted PR Review.
alexcrichton created PR Review Comment:
I might recommend using
splitn
here to avoid needing to worry about this case?
alexcrichton created PR Review Comment:
We may want to flag this method as
unsafe
? It seems like it's possible that it would be pretty easy to accidentally break safe invariants through arbitrary flags here.Additionally could this document that it's not necesarily the most stable method in the world? Basically just say that flags are intended to come and go over time, and stability is primarily through the other
Config
methods.
bnjbvr updated PR #1853 from wasmtime-cranelift-flag
to master
:
This would be handy to try different Cranelift settings while running on real hardware. My immediate use case is trying a different regalloc on aarch64, but I made something generic that would allow to use other cranelift flags in wasmtime too.
bjorn3 submitted PR Review.
bjorn3 created PR Review Comment:
The only flags that could be unsafe are
libcall_call_conv
andenable_safepoints
I think.avoid_div_traps
could result in an unhandled signal andenable_probestack
could result in a panic due to a missing libcall impl.
bnjbvr merged PR #1853.
Last updated: Nov 22 2024 at 16:03 UTC