bytecodealliance / regalloc2

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

Only sort parallel-moves list once #157

Closed jameysharp closed 1 year ago

jameysharp commented 1 year ago

Checking whether sources and dests overlap can use the same sort order that's needed later, as long as the check is updated to match.

I haven't done any benchmarking on this, but I have fuzzed it and didn't find any failures in 15 million inputs.