From ee821be29552ea74b6f866ffb792bf2f8955dd48 Mon Sep 17 00:00:00 2001 From: Robin Freyler Date: Mon, 7 Jul 2025 15:27:04 +0200 Subject: [PATCH] use more efficient CompareResult::compare_result --- crates/wasmi/src/engine/translator/func/instr_encoder.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/wasmi/src/engine/translator/func/instr_encoder.rs b/crates/wasmi/src/engine/translator/func/instr_encoder.rs index 21938f732f..dfc6f5f382 100644 --- a/crates/wasmi/src/engine/translator/func/instr_encoder.rs +++ b/crates/wasmi/src/engine/translator/func/instr_encoder.rs @@ -850,7 +850,7 @@ impl InstrEncoder { return Ok(false); }; let last_instruction = *self.instrs.get(last_instr); - let Some(result) = last_instruction.result() else { + let Some(result) = last_instruction.compare_result() else { // All negatable instructions have a single result register. return Ok(false); }; @@ -895,7 +895,7 @@ impl InstrEncoder { return Ok(false); }; let last_instruction = *self.instrs.get(last_instr); - let Some(result) = last_instruction.result() else { + let Some(result) = last_instruction.compare_result() else { // All negatable instructions have a single result register. return Ok(false); };