From a4e11a5c69afda7c977793e952e6bbd4210735f1 Mon Sep 17 00:00:00 2001 From: Graham Stott Date: Thu, 9 Aug 2001 13:23:01 +0000 Subject: [PATCH] predict.c (estimate_probability): Replace magic numbers with appropriate enumeration. * predict.c (estimate_probability): Replace magic numbers with appropriate enumeration. From-SVN: r44738 --- gcc/ChangeLog | 7 ++++++- gcc/predict.c | 4 ++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a1bbdb2905c..3efda2ca2ea 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,6 +1,11 @@ 2001-08-09 Graham Stott - cppexp.c (EXTRACT_PRIO): Uppercase and parenthsize macro + * predict.c (estimate_probability): Replace magic numbers with + appropriate enumeration. + +2001-08-09 Graham Stott + + * cppexp.c (EXTRACT_PRIO): Uppercase and parenthsize macro parameter. (EXTRACT_FLAGS): Likewise. diff --git a/gcc/predict.c b/gcc/predict.c index 91a64a3fd1f..a512377e62b 100644 --- a/gcc/predict.c +++ b/gcc/predict.c @@ -287,8 +287,8 @@ estimate_probability (loops_info) dominators = sbitmap_vector_alloc (n_basic_blocks, n_basic_blocks); post_dominators = sbitmap_vector_alloc (n_basic_blocks, n_basic_blocks); - calculate_dominance_info (NULL, dominators, 0); - calculate_dominance_info (NULL, post_dominators, 1); + calculate_dominance_info (NULL, dominators, CDI_DOMINATORS); + calculate_dominance_info (NULL, post_dominators, CDI_POST_DOMINATORS); /* Try to predict out blocks in a loop that are not part of a natural loop. */