Implement value affinities for register allocation.
An SSA value is usually biased towards a specific register class or a stack slot, depending on the constraints of the instructions using it. Represent this bias as an Affinity enum, and implement a merging algorithm for updating an affinity to satisfy a new constraint. Affinities will be computed as part of the liveness analysis. This is not implemented yet.
This commit is contained in:
1
cranelift/.gitignore
vendored
1
cranelift/.gitignore
vendored
@@ -5,3 +5,4 @@
|
||||
tags
|
||||
target
|
||||
Cargo.lock
|
||||
.*.rustfmt
|
||||
|
||||
Reference in New Issue
Block a user