diff options
author | Hans-Kristian Arntzen <post@arntzen-software.no> | 2022-04-28 13:42:28 +0300 |
---|---|---|
committer | Hans-Kristian Arntzen <post@arntzen-software.no> | 2022-04-28 13:49:33 +0300 |
commit | efd48541d2d71817c5bf6e0042d866848794e4de (patch) | |
tree | c13ca244a505fe5bddf82ed81950f7b1203e7f61 | |
parent | 0ab26a342fd1316b4e3559827a6ddeaee17c1457 (diff) |
Remove dead code. loop_breaking_path has been replaced.
-rw-r--r-- | cfg_structurizer.cpp | 9 | ||||
-rw-r--r-- | cfg_structurizer.hpp | 1 |
2 files changed, 0 insertions, 10 deletions
diff --git a/cfg_structurizer.cpp b/cfg_structurizer.cpp index 46377f8..3d79fa5 100644 --- a/cfg_structurizer.cpp +++ b/cfg_structurizer.cpp @@ -2655,15 +2655,6 @@ bool CFGStructurizer::find_switch_blocks(unsigned pass) return modified_cfg; } -bool CFGStructurizer::merge_candidate_is_on_loop_breaking_path(const CFGNode *node) const -{ - return node->pred.size() >= 2 && node->succ.size() == 1 && - !node->dominates(node->succ.front()) && - node->succ.front()->post_dominates(node) && - control_flow_is_escaping_from_loop(node, node->succ.front()) && - !node->post_dominates_perfect_structured_construct(); -} - bool CFGStructurizer::merge_candidate_is_on_breaking_path(const CFGNode *node) const { return node->pred.size() >= 2 && node->succ.size() == 1 && diff --git a/cfg_structurizer.hpp b/cfg_structurizer.hpp index a5c136b..85adabf 100644 --- a/cfg_structurizer.hpp +++ b/cfg_structurizer.hpp @@ -111,7 +111,6 @@ private: void split_merge_blocks(); bool merge_candidate_is_on_breaking_path(const CFGNode *node) const; - bool merge_candidate_is_on_loop_breaking_path(const CFGNode *node) const; bool continue_block_can_merge(CFGNode *node) const; static bool block_is_plain_continue(const CFGNode *node); CFGNode *get_target_break_block_for_inner_header(const CFGNode *node, size_t header_index); |