Skip to content

Commit 45f8b2a

Browse files
authored
Re-enable single-pass regalloc in fuzzing (#11721)
Follow-up to #11712
1 parent aca2a57 commit 45f8b2a

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

crates/fuzzing/src/generators/config.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -838,18 +838,14 @@ impl OptLevel {
838838
#[derive(Arbitrary, Clone, Debug, PartialEq, Eq, Hash)]
839839
enum RegallocAlgorithm {
840840
Backtracking,
841-
// FIXME(#11544 and #11545): rename back to `SinglePass` and handle below
842-
// when those issues are fixed
843-
TemporarilyDisabledSinglePass,
841+
SinglePass,
844842
}
845843

846844
impl RegallocAlgorithm {
847845
fn to_wasmtime(&self) -> wasmtime::RegallocAlgorithm {
848846
match self {
849847
RegallocAlgorithm::Backtracking => wasmtime::RegallocAlgorithm::Backtracking,
850-
RegallocAlgorithm::TemporarilyDisabledSinglePass => {
851-
wasmtime::RegallocAlgorithm::Backtracking
852-
}
848+
RegallocAlgorithm::SinglePass => wasmtime::RegallocAlgorithm::SinglePass,
853849
}
854850
}
855851
}

tests/all/stack_overflow.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,7 @@ fn big_stack_works_ok(config: &mut Config) -> Result<()> {
152152
// Disable cranelift optimizations to ensure that this test doesn't take too
153153
// long in debug mode due to the large size of its code.
154154
config.cranelift_opt_level(OptLevel::None);
155-
// FIXME(#11544) helps make this test case faster
156-
// config.cranelift_regalloc_algorithm(RegallocAlgorithm::SinglePass);
155+
config.cranelift_regalloc_algorithm(RegallocAlgorithm::SinglePass);
157156
let engine = Engine::new(config)?;
158157

159158
let mut store = Store::new(&engine, ());

0 commit comments

Comments
 (0)