From a79bb140b9f8683fb9503a5d979e04b597716cd5 Mon Sep 17 00:00:00 2001 From: Simon Date: Mon, 18 Sep 2023 18:56:06 +0200 Subject: [PATCH] proposed fix to the known group passes. --- .../passes/group_by_successor_predecessor_known_groups.cpp | 5 +---- .../passes/split_by_successor_predecessor_known_groups.cpp | 5 +---- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/plugins/dataflow_analysis/src/processing/passes/group_by_successor_predecessor_known_groups.cpp b/plugins/dataflow_analysis/src/processing/passes/group_by_successor_predecessor_known_groups.cpp index 5ffa5e92f86..d7f5d29150f 100644 --- a/plugins/dataflow_analysis/src/processing/passes/group_by_successor_predecessor_known_groups.cpp +++ b/plugins/dataflow_analysis/src/processing/passes/group_by_successor_predecessor_known_groups.cpp @@ -35,10 +35,7 @@ namespace hal characteristics_of_group.insert(predecessing_known_group.begin(), predecessing_known_group.end()); } - if (!characteristics_of_group.empty()) - { - characteristics_map[characteristics_of_group].push_back(group_id); - } + characteristics_map[characteristics_of_group].push_back(group_id); } /* check if merge is allowed */ diff --git a/plugins/dataflow_analysis/src/processing/passes/split_by_successor_predecessor_known_groups.cpp b/plugins/dataflow_analysis/src/processing/passes/split_by_successor_predecessor_known_groups.cpp index 012d75b2d34..2252ee4b557 100644 --- a/plugins/dataflow_analysis/src/processing/passes/split_by_successor_predecessor_known_groups.cpp +++ b/plugins/dataflow_analysis/src/processing/passes/split_by_successor_predecessor_known_groups.cpp @@ -54,10 +54,7 @@ namespace hal } } - if (!characteristics_of_gate.empty()) - { - characteristics_map[characteristics_of_gate].insert(gate); - } + characteristics_map[characteristics_of_gate].insert(gate); } /* merge gates */