This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Remove non needed check in bmp_iter_set_init (PR tree-optimization/82669).
- From: Martin Liška <mliska at suse dot cz>
- To: gcc-patches at gcc dot gnu dot org
- Cc: Jeff Law <law at redhat dot com>
- Date: Wed, 8 Nov 2017 08:13:20 +0100
- Subject: [PATCH] Remove non needed check in bmp_iter_set_init (PR tree-optimization/82669).
- Authentication-results: sourceware.org; auth=none
Hello.
Assert removal is logical as it's used in iteration and if sbitmap is empty, iteration
macro will not touch any element of a bitmap.
Ready after it survives regression tests?
Thanks,
Martin
gcc/ChangeLog:
2017-11-08 Martin Liska <mliska@suse.cz>
PR tree-optimization/82669
* sbitmap.h (bmp_iter_set_init): Remove non needed check.
---
gcc/sbitmap.h | 2 --
1 file changed, 2 deletions(-)
diff --git a/gcc/sbitmap.h b/gcc/sbitmap.h
index a5ff0685e43..3c58bf01fdc 100644
--- a/gcc/sbitmap.h
+++ b/gcc/sbitmap.h
@@ -171,8 +171,6 @@ static inline void
bmp_iter_set_init (sbitmap_iterator *i, const_sbitmap bmp,
unsigned int min, unsigned *bit_no ATTRIBUTE_UNUSED)
{
- bitmap_check_index (bmp, min);
-
i->word_num = min / (unsigned int) SBITMAP_ELT_BITS;
i->bit_num = min;
i->size = bmp->size;