Provide never-throws metadata for more functions during Wasm-to-CLIF translation

Aperta
#15,234 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
42/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
rust, wasm

Direzione di ricerca

Read the linked PR #15224 first to understand how never-throws metadata is recorded and used during Wasm-to-CLIF translation. Then inspect the libcall definitions and their translation paths to identify which can be marked never-throw; the issue names no specific files or tests. Done means additional valid functions, such as suitable libcalls, use regular CLIF calls instead of try_calls.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

cranelift:goal:optimize-speed performance

Follow up to https://github.com/bytecodealliance/wasmtime/pull/15224

We can now record which functions never throw and translate calls to them into regular CLIF calls rather than CLIF try_calls, which avoids the spill-everything ABI and produces better code under register pressure. That initial PR only marked certain FACT intrinsics as never-throw, but we should be able to mark a bunch more, such as most (all?) of our libcalls.

Lingua principale
Rust
Stelle
18.9k
Fork
2k
Merge medio
1g 6h
PR unite (30g)
238

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di bytecodealliance/wasmtime

Tutte le issue di bytecodealliance/wasmtime

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.