Improve prog-move handling: no use/def records, just directly connect the LRs.
Also requires some metadata in edit output to properly hook up the checker in regalloc.rs to track user-moves without seeing the original insts with operands.
This commit is contained in:
@@ -41,7 +41,7 @@ fuzz_target!(|testcase: TestCase| {
|
||||
let scratch = Allocation::reg(PReg::new(31, RegClass::Int));
|
||||
let mut par = ParallelMoves::new(scratch);
|
||||
for &(src, dst) in &testcase.moves {
|
||||
par.add(src, dst);
|
||||
par.add(src, dst, ());
|
||||
}
|
||||
let moves = par.resolve();
|
||||
|
||||
@@ -59,7 +59,7 @@ fuzz_target!(|testcase: TestCase| {
|
||||
for i in 0..32 {
|
||||
regfile[i] = Some(i);
|
||||
}
|
||||
for (src, dst) in moves {
|
||||
for (src, dst, _) in moves {
|
||||
if let (Some(preg_src), Some(preg_dst)) = (src.as_reg(), dst.as_reg()) {
|
||||
let data = regfile[preg_src.hw_enc()];
|
||||
regfile[preg_dst.hw_enc()] = data;
|
||||
|
||||
Reference in New Issue
Block a user