gcc/0162-rtl-ifcvt-free-dominance-info-before-cleanup_cfg.patch
2023-12-15 15:50:26 +08:00

26 lines
729 B
Diff

From 126bd5722f96733e7fbe433062861d5c3534911a Mon Sep 17 00:00:00 2001
From: vchernon <chernonog.vyacheslav@huawei.com>
Date: Wed, 13 Dec 2023 21:52:03 +0800
Subject: [PATCH 2/2] [rtl-ifcvt] free dominance info before cleanup_cfg not
cleaned dominance info can cause infite loop in cleanup_cfg
---
gcc/ifcvt.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/gcc/ifcvt.c b/gcc/ifcvt.c
index 209987ebc..04086c560 100644
--- a/gcc/ifcvt.c
+++ b/gcc/ifcvt.c
@@ -5624,6 +5624,7 @@ if_convert (bool after_combine)
df_live_add_problem ();
df_live_set_all_dirty ();
}
+ free_dominance_info (CDI_DOMINATORS);
cleanup_cfg (CLEANUP_EXPENSIVE);
/* Record whether we are after combine pass. */
--
2.33.0