From dc59a07f8fae277c2464c925dcc1bcce039e6e28 Mon Sep 17 00:00:00 2001 From: Sasha Lopoukhine Date: Mon, 13 Nov 2023 19:38:19 +0000 Subject: [PATCH] fix a_op update --- xdsl/backend/riscv/lowering/convert_snitch_stream_to_snitch.py | 1 + 1 file changed, 1 insertion(+) diff --git a/xdsl/backend/riscv/lowering/convert_snitch_stream_to_snitch.py b/xdsl/backend/riscv/lowering/convert_snitch_stream_to_snitch.py index 513cc21afb..f23c820b52 100644 --- a/xdsl/backend/riscv/lowering/convert_snitch_stream_to_snitch.py +++ b/xdsl/backend/riscv/lowering/convert_snitch_stream_to_snitch.py @@ -96,6 +96,7 @@ def match_and_rewrite( ) set_stride_op = snitch.SsrSetDimensionStrideOp(stride_op.rd, op.dm, ints[1]) new_ops.extend((a_inc_op, new_a_op, stride_op, set_stride_op)) + a_op = new_a_op rewriter.insert_op_before_matched_op(new_ops) rewriter.erase_matched_op()