This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

PATCH predict.c use enumeration not magic numbers.


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.  */
------------------------------------------------------------------------


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]