This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH predict.c use enumeration not magic numbers.
- To: gcc-patches at gcc dot gnu dot org
- Subject: PATCH predict.c use enumeration not magic numbers.
- From: Graham Stott <grahams at redhat dot com>
- Date: Sun, 29 Jul 2001 15:33:23 +0100
All
I guess these calls to calculate_dominance_info were missed when the
enumerations where added.
Bootstrapped x86
Graham
ChangeLog
* predict.c (estimate_probability): Replace magic numbers with
appropriate enumeration.
----------------------------------------------------------------------------------
Index: predict.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/predict.c,v
retrieving revision 1.29
diff -c -p -r1.29 predict.c
*** predict.c 2001/07/28 21:37:35 1.29
--- predict.c 2001/07/29 10:25:25
*************** estimate_probability (loops_info)
*** 287,294 ****
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);
/* Try to predict out blocks in a loop that are not part of a
natural loop. */
--- 287,294 ----
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, 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. */
------------------------------------------------------------------------