Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions prover/src/test_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -671,6 +671,12 @@ fn build_air<CS: ConstraintSet<F, E> + Clone + Send + Sync + 'static>(
.with_name(name);
// Pre-capture the constraint IR so every clone carries it (the prover's
// GPU lowering and interpreter paths force it per instance otherwise).
//
// NOT on the guest: the in-VM verifier reaches `build_air` through
// `VmAirs::new` and never calls `constraint_program()`, so capturing here
// buys it nothing and costs a full IR build per AIR — measured as ~9.7% of
// the recursion guest's cycles on a real block.
#[cfg(not(target_arch = "riscv64"))]
let _ = air.constraint_program();
air_prototype_cache()
.lock()
Expand Down
Loading