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

Abierto
#15,234 1 comentario 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
42/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
rust, wasm

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
Rust
Estrellas
18.9k
Forks
2k
Merge medio
1 d 6 h
PR fusionados (30 d)
238

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de bytecodealliance/wasmtime

Todos los issues de bytecodealliance/wasmtime

Issues similares

Más issues de Rust

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.