bytecodealliance / regalloc2

A new register allocator
Apache License 2.0
217 stars 38 forks source link

Add `regalloc2-tool` #148

Closed Amanieu closed 1 year ago

Amanieu commented 1 year ago

This PR has 2 components:

This is a useful tool for debugging register allocation failures and to investigate cases of poor register allocation.

Amanieu commented 1 year ago

Here is an example of the output of this tool with the -v option which prints the function before and after register allocation. Note that this example is based on #131 since it requires 128 integer pregs.