Skip to content

Commit

Permalink
Revert "Make parallel-moves resolver available publicly (#156)"
Browse files Browse the repository at this point in the history
This reverts commit 69dba4a.

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.
  • Loading branch information
jameysharp committed Apr 30, 2024
1 parent 29fc924 commit 9c9157b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion fuzz/fuzz_targets/moves.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#![no_main]
use regalloc2::fuzzing::arbitrary::{Arbitrary, Result, Unstructured};
use regalloc2::fuzzing::fuzz_target;
use regalloc2::moves::{MoveAndScratchResolver, ParallelMoves};
use regalloc2::fuzzing::moves::{MoveAndScratchResolver, ParallelMoves};
use regalloc2::{Allocation, PReg, RegClass, SpillSlot};
use std::collections::{HashMap, HashSet};

Expand Down
3 changes: 3 additions & 0 deletions src/fuzzing/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ pub mod domtree {
pub mod postorder {
pub use crate::postorder::*;
}
pub mod moves {
pub use crate::moves::*;
}
pub mod cfg {
pub use crate::cfg::*;
}
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ pub(crate) mod cfg;
pub(crate) mod domtree;
pub mod indexset;
pub(crate) mod ion;
pub mod moves;
pub(crate) mod moves;
pub(crate) mod postorder;
pub mod ssa;

Expand Down

0 comments on commit 9c9157b

Please sign in to comment.