paritytech / paritytech/revive

Custom instructions

Open
#593 2 comments 0 reactions 3 assignees View on GitHub

@kvpanch is already working on this.

Since Aug 13, 2026.

Dominant language
Rust
Stars
102
Forks
26
Avg merge
1d 13h
Merged PRs (30d)
6

Description

Meta issue: Solidity tailored PVM instructions

We should look into introducing:

  • Vector extensions (gets us more registers)
  • Custom instructions, like the ones discussed in the document, using the vector registers
  • A custom ABI profiting from our custom instructions and vector registers

These 3 combined should:

  • Significantly improve code size and runtime performance of arithmetic heavy contracts
  • Significantly remove register pressure and stack traffic
  • Make function calls much cheaper code-size wise, which can compound further gains

Done right, this shouldn't have adversarial effects on the PVM re-compiler. We implement this in experimental branches in this repository, paritytech/polkavm and paritytech/llvm-project

Depending on the outcome of this experiment, we can then think about how to spec everything into the gray paper.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.