diff options
author | Nathan Sidwell <nathan@codesourcery.com> | 2005-03-10 15:40:11 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@gcc.gnu.org> | 2005-03-10 15:40:11 +0000 |
commit | fd6132db694cfbf31d8751b747d249a665a3e642 (patch) | |
tree | 07eab345e6b070d6b59f253378ea29d046a95b68 /gcc | |
parent | 002d6ea7147bc9113707cc4b421d0b6d494b81f2 (diff) | |
download | gcc-fd6132db694cfbf31d8751b747d249a665a3e642.zip gcc-fd6132db694cfbf31d8751b747d249a665a3e642.tar.gz gcc-fd6132db694cfbf31d8751b747d249a665a3e642.tar.bz2 |
* bitmap.c (bitmap_copy): Remove manual loop unrolling.
From-SVN: r96243
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 2 | ||||
-rw-r--r-- | gcc/bitmap.c | 12 |
2 files changed, 3 insertions, 11 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f2a5c62..2e5b1f1 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,7 @@ 2005-03-10 Nathan Sidwell <nathan@codesourcery.com> + * bitmap.c (bitmap_copy): Remove manual loop unrolling. + * value-prof.c (rtl_find_values_to_profile): Use gcc_assert and gcc_unreachable. (rtl_register_value_prof_hooks, diff --git a/gcc/bitmap.c b/gcc/bitmap.c index 198b756..2cf4c8c 100644 --- a/gcc/bitmap.c +++ b/gcc/bitmap.c @@ -346,9 +346,6 @@ void bitmap_copy (bitmap to, bitmap from) { bitmap_element *from_ptr, *to_ptr = 0; -#if BITMAP_ELEMENT_WORDS != 2 - unsigned i; -#endif bitmap_clear (to); @@ -358,14 +355,7 @@ bitmap_copy (bitmap to, bitmap from) bitmap_element *to_elt = bitmap_element_allocate (to); to_elt->indx = from_ptr->indx; - -#if BITMAP_ELEMENT_WORDS == 2 - to_elt->bits[0] = from_ptr->bits[0]; - to_elt->bits[1] = from_ptr->bits[1]; -#else - for (i = 0; i < BITMAP_ELEMENT_WORDS; i++) - to_elt->bits[i] = from_ptr->bits[i]; -#endif + memcpy (to_elt->bits, from_ptr->bits, sizeof (to_elt->bits)); /* Here we have a special case of bitmap_element_link, for the case where we know the links are being entered in sequence. */ |