From b9a5c4e485b8bcebd8dbd9da47e81ff566b53aab Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Fri, 19 Sep 2025 10:23:39 -0700 Subject: [PATCH] Re-enable single-pass regalloc in fuzzing Follow-up to #11712 --- crates/fuzzing/src/generators/config.rs | 8 ++------ tests/all/stack_overflow.rs | 3 +-- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/crates/fuzzing/src/generators/config.rs b/crates/fuzzing/src/generators/config.rs index a3290fdd7712..279f9dc09702 100644 --- a/crates/fuzzing/src/generators/config.rs +++ b/crates/fuzzing/src/generators/config.rs @@ -838,18 +838,14 @@ impl OptLevel { #[derive(Arbitrary, Clone, Debug, PartialEq, Eq, Hash)] enum RegallocAlgorithm { Backtracking, - // FIXME(#11544 and #11545): rename back to `SinglePass` and handle below - // when those issues are fixed - TemporarilyDisabledSinglePass, + SinglePass, } impl RegallocAlgorithm { fn to_wasmtime(&self) -> wasmtime::RegallocAlgorithm { match self { RegallocAlgorithm::Backtracking => wasmtime::RegallocAlgorithm::Backtracking, - RegallocAlgorithm::TemporarilyDisabledSinglePass => { - wasmtime::RegallocAlgorithm::Backtracking - } + RegallocAlgorithm::SinglePass => wasmtime::RegallocAlgorithm::SinglePass, } } } diff --git a/tests/all/stack_overflow.rs b/tests/all/stack_overflow.rs index e2662d8e3085..bd27a04c5034 100644 --- a/tests/all/stack_overflow.rs +++ b/tests/all/stack_overflow.rs @@ -152,8 +152,7 @@ fn big_stack_works_ok(config: &mut Config) -> Result<()> { // Disable cranelift optimizations to ensure that this test doesn't take too // long in debug mode due to the large size of its code. config.cranelift_opt_level(OptLevel::None); - // FIXME(#11544) helps make this test case faster - // config.cranelift_regalloc_algorithm(RegallocAlgorithm::SinglePass); + config.cranelift_regalloc_algorithm(RegallocAlgorithm::SinglePass); let engine = Engine::new(config)?; let mut store = Store::new(&engine, ());