From a848c710910d783a7c3b3c29dd481df596b016c2 Mon Sep 17 00:00:00 2001 From: Kyrylo Tkachov Date: Fri, 14 Jul 2017 09:11:20 +0000 Subject: Update comment in gimple-ssa-store-merging.c * gimple-ssa-store-merging.c (clear_bit_region): Replace reference to loop in comment with memset. From-SVN: r250201 --- gcc/gimple-ssa-store-merging.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gcc/gimple-ssa-store-merging.c') diff --git a/gcc/gimple-ssa-store-merging.c b/gcc/gimple-ssa-store-merging.c index 64b8351..5e92273 100644 --- a/gcc/gimple-ssa-store-merging.c +++ b/gcc/gimple-ssa-store-merging.c @@ -331,8 +331,8 @@ clear_bit_region (unsigned char *ptr, unsigned int start, else if (start == 0 && len > BITS_PER_UNIT) { unsigned int nbytes = len / BITS_PER_UNIT; - /* We could recurse on each byte but do the loop here to avoid - recursing too deep. */ + /* We could recurse on each byte but we clear whole bytes, so a simple + memset will do. */ memset (ptr, '\0', nbytes); /* Clear the remaining sub-byte region if there is one. */ if (len % BITS_PER_UNIT != 0) -- cgit v1.1