summaryrefslogtreecommitdiff
path: root/crates/parser/src/lib.rs
diff options
context:
space:
mode:
authorHenry <mail@henrygressmann.de>2026-04-25 16:47:54 +0200
committerHenry <mail@henrygressmann.de>2026-04-25 16:47:54 +0200
commite6691d035b6948452d6073317451b3f1ff0a24f8 (patch)
treeb29eee89fcb4e4df1630b2d09a6286e5ddfd620e /crates/parser/src/lib.rs
parent4d829a824834b470ada9981ab3ab2caa3e289378 (diff)
fix: remove unsafe rewrites
Signed-off-by: Henry <mail@henrygressmann.de>
Diffstat (limited to 'crates/parser/src/lib.rs')
-rw-r--r--crates/parser/src/lib.rs13
1 files changed, 0 insertions, 13 deletions
diff --git a/crates/parser/src/lib.rs b/crates/parser/src/lib.rs
index 949afa2..684e79b 100644
--- a/crates/parser/src/lib.rs
+++ b/crates/parser/src/lib.rs
@@ -51,8 +51,6 @@ pub struct ParserOptions {
pub optimize_rewrite: bool,
/// Whether to remove `Nop` and `MergeBarrier` instructions after rewriting.
pub optimize_remove_nop: bool,
- /// Whether to invert conditional branches over an unconditional jump.
- pub optimize_branch_inversion: bool,
}
impl Default for ParserOptions {
@@ -61,7 +59,6 @@ impl Default for ParserOptions {
optimize_local_memory_allocation: true,
optimize_rewrite: true,
optimize_remove_nop: true,
- optimize_branch_inversion: false,
}
}
}
@@ -100,16 +97,6 @@ impl ParserOptions {
self.optimize_remove_nop
}
- /// Enable or disable the optimization that inverts conditional branches over an unconditional jump.
- pub const fn with_branch_inversion_optimization(mut self, enabled: bool) -> Self {
- self.optimize_branch_inversion = enabled;
- self
- }
-
- /// Returns whether conditional branch inversion optimization is enabled.
- pub const fn optimize_branch_inversion(&self) -> bool {
- self.optimize_branch_inversion
- }
}
/// A WebAssembly parser