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

Đang mở
#15,234 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
42/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
rust, wasm
Lĩnh vực
compilers, performance

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
Rust
Star
18.9k
Fork
2k
Merge trung bình
1 ngày 6 giờ
Pull request đã merge (30 ngày)
238

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của bytecodealliance/wasmtime

Tất cả issue của bytecodealliance/wasmtime

Issue tương tự

Thêm issue về Rust

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.