Skip to content

Commit b13cda1

Browse files
authored
Revert "Make parallel-moves resolver available publicly" (#175)
Reverts #156 We never used this functionality in Cranelift. When we tried, we discovered that's it's pretty tricky to use correctly outside of the specific context it was written for in RA2, and then we found out that we didn't need it at all. So let's revert making it public.
1 parent 29fc924 commit b13cda1

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

fuzz/fuzz_targets/moves.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#![no_main]
77
use regalloc2::fuzzing::arbitrary::{Arbitrary, Result, Unstructured};
88
use regalloc2::fuzzing::fuzz_target;
9-
use regalloc2::moves::{MoveAndScratchResolver, ParallelMoves};
9+
use regalloc2::fuzzing::moves::{MoveAndScratchResolver, ParallelMoves};
1010
use regalloc2::{Allocation, PReg, RegClass, SpillSlot};
1111
use std::collections::{HashMap, HashSet};
1212

src/fuzzing/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ pub mod domtree {
1515
pub mod postorder {
1616
pub use crate::postorder::*;
1717
}
18+
pub mod moves {
19+
pub use crate::moves::*;
20+
}
1821
pub mod cfg {
1922
pub use crate::cfg::*;
2023
}

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ pub(crate) mod cfg;
4343
pub(crate) mod domtree;
4444
pub mod indexset;
4545
pub(crate) mod ion;
46-
pub mod moves;
46+
pub(crate) mod moves;
4747
pub(crate) mod postorder;
4848
pub mod ssa;
4949

0 commit comments

Comments
 (0)