From 048f1a9c54e6d33a895770db2a0bf0f06eb25760 Mon Sep 17 00:00:00 2001 From: Thomas Preud'homme Date: Tue, 10 Mar 2015 07:35:09 +0000 Subject: [PATCH] dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B code in comment. 2015-03-10 Thomas Preud'homme * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B code in comment. From-SVN: r221303 --- gcc/ChangeLog | 5 +++++ gcc/dominance.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0ba2886d66e..47de3b9c4c6 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2015-03-10 Thomas Preud'homme + + * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B + code in comment. + 2015-03-10 Jakub Jelinek PR rtl-optimization/65321 diff --git a/gcc/dominance.c b/gcc/dominance.c index 33d4ae4033f..09c8c90eebe 100644 --- a/gcc/dominance.c +++ b/gcc/dominance.c @@ -982,7 +982,7 @@ nearest_common_dominator_for_set (enum cdi_direction dir, bitmap blocks) A_Dominated_by_B (node A, node B) { - return DFS_Number_In(A) >= DFS_Number_In(A) + return DFS_Number_In(A) >= DFS_Number_In(B) && DFS_Number_Out (A) <= DFS_Number_Out(B); } */ -- 2.30.2