Patch for bitmap.h (was Re: Out-of-sight compile times for calculate_loop_depth)

Brad Lucier lucier@math.purdue.edu
Thu Feb 10 18:55:00 GMT 2000


Michael:

I think this patch does seriously cut some time in the compilation.
I'm somewhat loath to just hack and try different things (substituting
bitmaps for sbitmaps, unrolling the loop in sbitmap_intersection_of_preds)
without knowing where the real problem is, or whether one should go
directly to a better algorithm.

Brad


	* sbitmap.h : Make SBITMAP_ELT_BITS unsigned.

*** sbitmap.h	2000/02/09 19:11:49	1.1
--- sbitmap.h	2000/02/09 20:48:33
***************
*** 25,31 ****
     It should be straightforward to convert so for now we keep things simple
     while more important issues are dealt with.  */
  
! #define SBITMAP_ELT_BITS HOST_BITS_PER_WIDE_INT
  #define SBITMAP_ELT_TYPE unsigned HOST_WIDE_INT
  
  typedef struct simple_bitmap_def {
--- 25,31 ----
     It should be straightforward to convert so for now we keep things simple
     while more important issues are dealt with.  */
  
! #define SBITMAP_ELT_BITS ((unsigned) HOST_BITS_PER_WIDE_INT)
  #define SBITMAP_ELT_TYPE unsigned HOST_WIDE_INT
  
  typedef struct simple_bitmap_def {




More information about the Gcc-patches mailing list