From dc061a7dc969e8b7b6ffbce340f097a3c93c96c4 Mon Sep 17 00:00:00 2001 From: "man.lu" Date: Mon, 29 Jan 2024 01:32:36 +0800 Subject: [PATCH] Fix: exclude inPlaceOp in groupParallel Change-Id: I71cb8b01975c9bd8cd945314bff758110fdfeabc --- lib/Dialect/Tpu/Transforms/CoreParallel/CoreMatch.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Dialect/Tpu/Transforms/CoreParallel/CoreMatch.cpp b/lib/Dialect/Tpu/Transforms/CoreParallel/CoreMatch.cpp index 1b3ad0b39..dc9d9f2df 100644 --- a/lib/Dialect/Tpu/Transforms/CoreParallel/CoreMatch.cpp +++ b/lib/Dialect/Tpu/Transforms/CoreParallel/CoreMatch.cpp @@ -321,7 +321,8 @@ struct CommonMatch : public RewritePattern { auto users = value.getUsers(); for (auto left = users.begin(); left != users.end(); left++) { auto left_op = *left; - if (isa(left_op)) { + // inPlace op + if (isa(left_op)) { continue; } if (find_f(same_ops, left_op)) {