Skip to content

Commit

Permalink
run less passes and fix warning
Browse files Browse the repository at this point in the history
  • Loading branch information
r58Playz committed Mar 8, 2025
1 parent 788ea60 commit 3da0e1d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
14 changes: 7 additions & 7 deletions rewriter/wasm/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,13 @@ if [ "${RELEASE:-0}" = "1" ]; then
G="--generate-global-effects"
# shellcheck disable=SC2086
time wasm-opt $WASMOPTFLAGS \
rewriter/wasm/out/wasm_snipped.wasm -o rewriter/wasm/out/optimized.wasm \
--converge -tnh --enable-threads --enable-bulk-memory --enable-simd \
$G --type-unfinalizing $G --type-ssa $G -O4 $G --flatten $G --rereloop $G -O4 $G -O4 $G --type-merging $G --type-finalizing $G -O4 \
$G --type-unfinalizing $G --type-ssa $G -Oz $G --flatten $G --rereloop $G -Oz $G -Oz $G --type-merging $G --type-finalizing $G -Oz \
$G --abstract-type-refining $G --code-folding $G --const-hoisting $G --dae $G --flatten $G --dfo $G --merge-locals $G --merge-similar-functions --type-finalizing \
$G --type-unfinalizing $G --type-ssa $G -O4 $G --flatten $G --rereloop $G -O4 $G -O4 $G --type-merging $G --type-finalizing $G -O4 \
$G --type-unfinalizing $G --type-ssa $G -Oz $G --flatten $G --rereloop $G -Oz $G -Oz $G --type-merging $G --type-finalizing $G -Oz
rewriter/wasm/out/wasm_snipped.wasm -o rewriter/wasm/out/optimized.wasm --enable-threads --enable-bulk-memory --enable-simd \
--converge -tnh --vacuum \
$G -O4 $G --flatten $G --rereloop $G -O4 $G -O4 $G -O4 \
$G -Oz $G --flatten $G --rereloop $G -Oz $G -Oz $G -Oz \
$G --code-folding $G --const-hoisting $G --dae $G --flatten $G --merge-locals \
$G -O4 $G --flatten $G --rereloop $G -O4 $G -O4 $G -O4 \
$G -Oz $G --flatten $G --rereloop $G -Oz $G -Oz $G -Oz
)
else
cp rewriter/wasm/out/wasm_snipped.wasm rewriter/wasm/out/optimized.wasm
Expand Down
6 changes: 1 addition & 5 deletions rewriter/wasm/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
pub mod error;

use std::{
cell::{OnceCell, RefCell},
sync::{Arc, OnceLock},
time::Duration,
};
use std::{cell::RefCell, sync::Arc, time::Duration};

use error::{Result, RewriterError};
use instant::Instant;
Expand Down

0 comments on commit 3da0e1d

Please sign in to comment.