Verify reused dominators info in calculate_dominance_info
2015-06-24 Tom de Vries <tom@codesourcery.com>
* dominance.c (calculate_dominance_info): Fix verify_dominators call
argument. Call verify_dominator when reusing dominator info.
---
gcc/dominance.c | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
@@ -648,7 +648,7 @@ calculate_dominance_info (enum cdi_direction dir)
if (dom_computed[dir_index] == DOM_OK)
{
#if ENABLE_CHECKING
- verify_dominators (CDI_DOMINATORS);
+ verify_dominators (dir);
#endif
return;
}
@@ -679,6 +679,12 @@ calculate_dominance_info (enum cdi_direction dir)
free_dom_info (&di);
dom_computed[dir_index] = DOM_NO_FAST_QUERY;
}
+ else
+ {
+#if ENABLE_CHECKING
+ verify_dominators (dir);
+#endif
+ }
compute_dom_fast_query (dir);
--
1.9.1