From f3d2916070d611a5485c56cfe892ce59702f208a Mon Sep 17 00:00:00 2001 From: Emma Kujala Date: Tue, 15 Jul 2025 14:48:49 +0200 Subject: [PATCH] Arm backend: Fix logging info in decomposition pass for asin Logging info about asin being approximated was placed before the if-statement in call_operator resulting in it being triggered for all ops, not just asin. Signed-off-by: Emma Kujala Change-Id: Icd743abce99b0173c610fa863f22ad5113726b06 --- backends/arm/_passes/decompose_asin_pass.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/backends/arm/_passes/decompose_asin_pass.py b/backends/arm/_passes/decompose_asin_pass.py index 1330ca89264..0c0bcdf7f49 100644 --- a/backends/arm/_passes/decompose_asin_pass.py +++ b/backends/arm/_passes/decompose_asin_pass.py @@ -85,12 +85,11 @@ def _build_polynomial( return result def call_operator(self, op, args, kwargs, meta): + if op not in edge_asin_op: + return super().call_operator(op, args, kwargs, meta) logging.info( f"Approximating asin. This may introduce small numerical errors. For details, see {__file__}." ) - if op not in edge_asin_op: - return super().call_operator(op, args, kwargs, meta) - x = args[0] half = 0.5 one = 1.0